From 8af0d86c12c7c131480ef463a339776a71f34548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Gull=C3=B3n?= Date: Thu, 9 Dec 2021 16:49:31 +0100 Subject: [PATCH] fix condition for null params from kraken-hub --- kraken/pvc/pvc_scenario.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kraken/pvc/pvc_scenario.py b/kraken/pvc/pvc_scenario.py index e3763cef..7fbddee5 100644 --- a/kraken/pvc/pvc_scenario.py +++ b/kraken/pvc/pvc_scenario.py @@ -69,9 +69,10 @@ pvc_name: '%s'\npod_name: '%s'\nnamespace: '%s'\ntarget_fill_percentage: '%s%%'\ for entry in volumes_list_json: if len(entry["persistentVolumeClaim"]["claimName"]) > 0: volume_name = entry["name"] - pvc_name = entry["persistentVolumeClaim"]["claimName"] if pvc_name else pvc_name + pvc_name = entry["persistentVolumeClaim"]["claimName"] break logging.info("Volume name: %s" % volume_name) + logging.info("PVC name: %s" % pvc_name) # Get container name and mount path command = 'kubectl get pods %s -n %s -o json | jq -r ".spec.containers"' % (