mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
Signed-off-by: Frederick Borges <fborges@opennebula.io>
This commit is contained in:
parent
615276bec0
commit
360db902ff
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user