1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

B #5254: Fix Service Update (#870)

Signed-off-by: Frederick Borges <fborges@opennebula.io>
This commit is contained in:
Frederick Borges 2021-02-24 13:33:40 +01:00 committed by GitHub
parent 615276bec0
commit 360db902ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -445,13 +445,12 @@ define(function(require) {
json_template["labels"] = currentInfo.TEMPLATE.BODY.labels;
}
json_template['registration_time'] = that.old_template.registration_time;
clear();
if (this.action == "create") {
Sunstone.runAction("ServiceTemplate.create", json_template );
return false;
} else if (this.action == "update") {
json_template['registration_time'] = that.old_template.registration_time;
var templateStr = JSON.stringify(json_template);
Sunstone.runAction("ServiceTemplate.update", this.resourceId, templateStr);
return false;