From ade0969a69c72bdf5c6bec1cc1961f71a7670cfa Mon Sep 17 00:00:00 2001 From: Janos Bonic <86970079+janosdebugs@users.noreply.github.com> Date: Fri, 6 May 2022 15:58:09 +0200 Subject: [PATCH] Fixes incorrect command nesting in kube_burner --- kraken/kube_burner/client.py | 58 ++++++++++++++++++------------------ 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/kraken/kube_burner/client.py b/kraken/kube_burner/client.py index 18254cc0..48b3339f 100644 --- a/kraken/kube_burner/client.py +++ b/kraken/kube_burner/client.py @@ -38,22 +38,22 @@ def scrape_metrics( prometheus_url, prometheus_bearer_token = prometheus.instance( distribution, prometheus_url, prometheus_bearer_token ) - command = ( - "./kube-burner index --uuid " - + str(uuid) - + " -u " - + str(prometheus_url) - + " -t " - + str(prometheus_bearer_token) - + " -m " - + str(metrics_profile) - + " --start " - + str(start_time) - + " --end " - + str(end_time) - + " -c " - + str(config_path) - ) + command = ( + "./kube-burner index --uuid " + + str(uuid) + + " -u " + + str(prometheus_url) + + " -t " + + str(prometheus_bearer_token) + + " -m " + + str(metrics_profile) + + " --start " + + str(start_time) + + " --end " + + str(end_time) + + " -c " + + str(config_path) + ) try: logging.info("Running kube-burner to capture the metrics: %s" % command) logging.info("UUID for the run: %s" % uuid) @@ -73,19 +73,19 @@ def alerts(distribution, prometheus_url, prometheus_bearer_token, start_time, en prometheus_url, prometheus_bearer_token = prometheus.instance( distribution, prometheus_url, prometheus_bearer_token ) - command = ( - "./kube-burner check-alerts " - + " -u " - + str(prometheus_url) - + " -t " - + str(prometheus_bearer_token) - + " -a " - + str(alert_profile) - + " --start " - + str(start_time) - + " --end " - + str(end_time) - ) + command = ( + "./kube-burner check-alerts " + + " -u " + + str(prometheus_url) + + " -t " + + str(prometheus_bearer_token) + + " -a " + + str(alert_profile) + + " --start " + + str(start_time) + + " --end " + + str(end_time) + ) try: logging.info("Running kube-burner to capture the metrics: %s" % command) subprocess.run(command, shell=True, universal_newlines=True)