@@ -42,6 +42,7 @@ def avatar(email, size):
42
42
"metadata" : {
43
43
"icon" : "https://cdn4.iconfinder.com/data/icons/mosaicon-04/512/websettings-512.png"
44
44
},
45
+ "enable_config_form" : False ,
45
46
"inputs" : {},
46
47
"tabs" : {}
47
48
}
@@ -65,7 +66,6 @@ def avatar(email, size):
65
66
toscaInfo [tosca ]['inputs' ] = template ['topology_template' ]['inputs' ]
66
67
67
68
## add parameters code here
68
- enable_config_form = False
69
69
tabs = {}
70
70
if tosca_pars_dir :
71
71
tosca_pars_path = tosca_pars_dir + "/" # this has to be reassigned here because is local.
@@ -77,7 +77,7 @@ def avatar(email, size):
77
77
if fname [0 ] != '.' :
78
78
tosca_pars_file = os .path .join (fpath , fname )
79
79
with io .open (tosca_pars_file ) as pars_file :
80
- enable_config_form = True
80
+ toscaInfo [ tosca ][ ' enable_config_form' ] = True
81
81
pars_data = yaml .load (pars_file )
82
82
toscaInfo [tosca ]['inputs' ] = pars_data ["inputs" ]
83
83
if "tabs" in pars_data :
@@ -261,8 +261,7 @@ def configure():
261
261
return render_template ('createdep.html' ,
262
262
template = toscaInfo [selected_tosca ],
263
263
selectedTemplate = selected_tosca ,
264
- slas = slas ,
265
- enable_config_form = enable_config_form )
264
+ slas = slas )
266
265
267
266
268
267
def add_sla_to_template (template , sla_id ):
0 commit comments