Adding prometheus_host env variable for ci/cd 94/9194/1
authorFelipe Vicens <felipe.vicens@atos.net>
Fri, 26 Jun 2020 06:59:00 +0000 (08:59 +0200)
committerFelipe Vicens <felipe.vicens@atos.net>
Fri, 26 Jun 2020 06:59:00 +0000 (08:59 +0200)
Change-Id: I40f6791481639ed16d0236e8819046cce915a117
Signed-off-by: Felipe Vicens <felipe.vicens@atos.net>
robot-systest/resources/basic_01-crud_operations_on_vim_targets_data.py

index c30314e..0b119d8 100644 (file)
@@ -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