From be5e1f892ad8e9690be2662eb0f4988f6258f1c3 Mon Sep 17 00:00:00 2001 From: Felipe Vicens Date: Fri, 26 Jun 2020 08:59:00 +0200 Subject: [PATCH] Adding prometheus_host env variable for ci/cd Change-Id: I40f6791481639ed16d0236e8819046cce915a117 Signed-off-by: Felipe Vicens --- .../basic_01-crud_operations_on_vim_targets_data.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/robot-systest/resources/basic_01-crud_operations_on_vim_targets_data.py b/robot-systest/resources/basic_01-crud_operations_on_vim_targets_data.py index c30314e..0b119d8 100644 --- a/robot-systest/resources/basic_01-crud_operations_on_vim_targets_data.py +++ b/robot-systest/resources/basic_01-crud_operations_on_vim_targets_data.py @@ -15,7 +15,10 @@ import yaml from pathlib import Path # Prometheus host and port -prometheus_host = os.environ.get("OSM_HOSTNAME") +if os.environ.get("PROMETHEUS_HOSTNAME", False): + prometheus_host = os.environ.get("PROMETHEUS_HOSTNAME") +else: + prometheus_host = os.environ.get("OSM_HOSTNAME") prometheus_port = "9091" # VIM Configuration -- 2.25.1