mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 05:04:56 +09:00
B #4278: Fix VM templates in Sunstone
(cherry picked from commit 04023a0ebb)
This commit is contained in:
1 parent
a6d7875ecb
commit
7276fa3ffd
1 file changed
+5
-5
@@ -219,6 +219,7 @@ define(function(require) {
|
||||
|
||||
delete templateJSON["NIC_PCI"];
|
||||
}
|
||||
|
||||
return templateJSON;
|
||||
}
|
||||
|
||||
@@ -256,11 +257,10 @@ define(function(require) {
|
||||
current = currentTemplate[0].VMTEMPLATE.TEMPLATE;
|
||||
}
|
||||
if(current) {
|
||||
if (current.NIC && !templateJSON.NIC) {
|
||||
delete current.NIC;
|
||||
}
|
||||
if(current.NIC_ALIAS && !templateJSON.NIC_ALIAS) {
|
||||
delete current.NIC_ALIAS;
|
||||
for (key in current) {
|
||||
if (!templateJSON[key]) {
|
||||
delete current[key]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user