X-Git-Url: https://gerrit.onap.org/r/gitweb?p=oom.git;a=blobdiff_plain;f=kubernetes%2Frobot%2Fresources%2Fconfig%2Feteshare%2Fconfig%2Fintegration_preload_parameters.py;h=aa97252f09c55dae925ed196689a3287f0239651;hp=a673a1629df4ae55d30640ea3134902a4315cbda;hb=c0e930f0795c5ea439d48fa6de2acc6b32ffb1d7;hpb=4d7e44933519920d73054b33a5aa30a228cbc0ae diff --git a/kubernetes/robot/resources/config/eteshare/config/integration_preload_parameters.py b/kubernetes/robot/resources/config/eteshare/config/integration_preload_parameters.py index a673a1629d..aa97252f09 100644 --- a/kubernetes/robot/resources/config/eteshare/config/integration_preload_parameters.py +++ b/kubernetes/robot/resources/config/eteshare/config/integration_preload_parameters.py @@ -14,6 +14,9 @@ import json import os.path +from itertools import chain +from collections import defaultdict + GLOBAL_PRELOAD_PARAMETERS = { # heat template parameter values common to all heat template continaing these parameters @@ -508,7 +511,6 @@ GLOBAL_PRELOAD_PARAMETERS = { } - # Create dictionaries for new MAPPING data to join to original MAPPING data GLOBAL_PRELOAD_PARAMETERS2 = {} @@ -524,5 +526,16 @@ for service in subfolders: # Merge dictionaries -GLOBAL_PRELOAD_PARAMETERS = dict(GLOBAL_PRELOAD_PARAMETERS.items() + GLOBAL_PRELOAD_PARAMETERS2.items()) +# preload_data.json is for Demo key in GLOBAL_PRELOAD_PARAMETERS + + +GLOBAL_PRELOAD_PARAMETERS3 = {'Demo':{}} + +for k, v in chain(GLOBAL_PRELOAD_PARAMETERS['Demo'].items(), GLOBAL_PRELOAD_PARAMETERS2['Demo'].items()): + GLOBAL_PRELOAD_PARAMETERS3['Demo'][k] = v +# print(k, v) + +GLOBAL_PRELOAD_PARAMETERS = dict(GLOBAL_PRELOAD_PARAMETERS.items() + GLOBAL_PRELOAD_PARAMETERS3.items()) + +#print GLOBAL_PRELOAD_PARAMETERS