From 925f15bafce3abf48335e8b4423de6c36a79a103 Mon Sep 17 00:00:00 2001 From: Sahil Shah Date: Wed, 16 Aug 2023 15:07:26 -0400 Subject: [PATCH] Fixing pvc scenario --- kraken/pvc/pvc_scenario.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kraken/pvc/pvc_scenario.py b/kraken/pvc/pvc_scenario.py index b9d1433a..de062212 100644 --- a/kraken/pvc/pvc_scenario.py +++ b/kraken/pvc/pvc_scenario.py @@ -139,8 +139,7 @@ def run(scenarios_list, config, kubecli: krkn_lib_kubernetes.KrknLibKubernetes, command, pod_name, namespace, - container_name, - "sh" + container_name ) ).split() pvc_used_kb = int(command_output[2]) @@ -209,7 +208,7 @@ def run(scenarios_list, config, kubecli: krkn_lib_kubernetes.KrknLibKubernetes, command = "ls -lh %s" % (str(mount_path)) logging.debug("Check file is created command:\n %s" % command) response = kubecli.exec_cmd_in_pod( - command, pod_name, namespace, container_name, "sh" + command, pod_name, namespace, container_name ) logging.info("\n" + str(response)) if str(file_name).lower() in str(response).lower():