diff --git a/app/deployments/routes.py b/app/deployments/routes.py index 38f219109..74e927d0d 100644 --- a/app/deployments/routes.py +++ b/app/deployments/routes.py @@ -460,7 +460,9 @@ def updatedep(): else: remove_sla_from_template(template) - inputs = {k: v for (k, v) in form_data.items() if not k.startswith("extra_opts.") and not k == '_depid'} + stinputs = json.loads(dep.stinputs.strip('\"')) if dep.stinputs else {} + inputs = {k: v for (k, v) in form_data.items() if not k.startswith("extra_opts.") and not k == '_depid' and ( + k in stinputs and 'updatable' in stinputs[k] and stinputs[k]['updatable'] == True)} additionaldescription = form_data['additional_description'] diff --git a/app/deployments/templates/input_types.html b/app/deployments/templates/input_types.html index 062a508e4..111fb8ea8 100644 --- a/app/deployments/templates/input_types.html +++ b/app/deployments/templates/input_types.html @@ -43,7 +43,7 @@ {% elif value.type == "list" and value.entry_schema.type|lower == "string" %} -
+
{% include 'inputs/list.html' %}
@@ -51,7 +51,7 @@ {% elif value.type == "list" and value.entry_schema.type|lower == "map" %} -
+
{% include 'inputs/list_map_string.html' %}
@@ -177,7 +177,7 @@ {% elif value.type == "map" and value.entry_schema.type == "string" %} -
+
{% include 'inputs/map_string.html' %}
@@ -185,7 +185,7 @@ {% elif value.type == "map" and (value.entry_schema.type == "tosca.datatypes.network.PortSpec" or value.entry_schema.type == "tosca.datatypes.indigo.network.PortSpec") %} {% set ports_type = "indigo" if 'indigo' in value.entry_schema.type else "" %} -
+
{% include 'inputs/ports.html' %}
diff --git a/app/deployments/templates/inputs/combined.html b/app/deployments/templates/inputs/combined.html index 918f1c73e..709a202ed 100644 --- a/app/deployments/templates/inputs/combined.html +++ b/app/deployments/templates/inputs/combined.html @@ -1,4 +1,4 @@ - {% for constraint in value.constraints %} diff --git a/app/deployments/templates/inputs/dependent_select.html b/app/deployments/templates/inputs/dependent_select.html index db1dc0568..e4eb8334d 100644 --- a/app/deployments/templates/inputs/dependent_select.html +++ b/app/deployments/templates/inputs/dependent_select.html @@ -1,4 +1,4 @@ - {% for constraint in value.constraints %} {% endfor %} diff --git a/app/deployments/templates/inputs/list.html b/app/deployments/templates/inputs/list.html index d38fbd075..25c3d5801 100644 --- a/app/deployments/templates/inputs/list.html +++ b/app/deployments/templates/inputs/list.html @@ -1,7 +1,7 @@
- +
diff --git a/app/deployments/templates/inputs/list_map_string.html b/app/deployments/templates/inputs/list_map_string.html index c9ad7ea00..33bf924ad 100644 --- a/app/deployments/templates/inputs/list_map_string.html +++ b/app/deployments/templates/inputs/list_map_string.html @@ -1,7 +1,7 @@
- +
diff --git a/app/deployments/templates/inputs/map_string.html b/app/deployments/templates/inputs/map_string.html index 525a35511..0a2677208 100644 --- a/app/deployments/templates/inputs/map_string.html +++ b/app/deployments/templates/inputs/map_string.html @@ -1,7 +1,7 @@
- +