B #4273: Fix labels when update service (#4349)

(cherry picked from commit 1c98510723)
This commit is contained in:
Sergio Betanzos authored and Tino Vazquez committed 2020-03-11 18:32:12 +01:00
1 parent e096059857
commit ca205ae63d
1 file changed
+11
@@ -230,6 +230,17 @@ define(function(require) {
json_template['ready_status_gate'] = ready_status_gate;
// add labels
var currentInfo = Sunstone.getElementRightInfo(TAB_ID)
if (
currentInfo &&
currentInfo.TEMPLATE &&
currentInfo.TEMPLATE.BODY &&
currentInfo.TEMPLATE.BODY.labels
) {
json_template['labels'] = currentInfo.TEMPLATE.BODY.labels
}
if (this.action == "create") {
Sunstone.runAction("ServiceTemplate.create", json_template );
return false;