Adjusting code to be able to download SLO definition from GCDM environments

master
Patryk Gudalewicz 2023-06-21 14:41:29 +02:00
parent bdfaa502e7
commit c8347eefce
1 changed files with 1 additions and 1 deletions

View File

@ -377,7 +377,7 @@ def getSloSrvNames(hub_config, configuration, doc, env):
hub = "cn"
krp = krparser.KRParser(name=env,options=krparser.KROption.RESOLVESERVICES, config={"threads":10, "serviceLookupParams":{"fields":"tags"}, "extendResultObjects":{"env":env}}, DTAPIURL=hub_config[env]["remote_url"], DTAPIToken=config(doc[env][2].get('env-token-name')))
if(configuration["hubs"][hub]["type"] == "gcdm"):
sloobj = getSLO(hub,hub_config[env]["remote_url_gcdm"],configuration["ids"][hub],config(doc[env][2].get('env-token-name')))
sloobj = getSLO(hub,hub_config[env]["remote_url_gcdm"],configuration["ids"][hub],config(doc[env][2].get('gcdm-token-name')))
else:
sloobj = getSLO(hub,hub_config[env]["remote_url"],configuration["ids"][hub],config(doc[env][2].get('env-token-name')))
krs = krp.parse(sloobj)