1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-24 21:34:01 +03:00

Revert "M #-: Minor fix at save_as (#4554)"

This reverts commit 78557ae302.
This commit is contained in:
Tino Vazquez 2020-04-20 11:51:17 +02:00
parent 78557ae302
commit b309d034d9
No known key found for this signature in database
GPG Key ID: 2FE9C32E94AEABBE

View File

@ -779,7 +779,7 @@ module OpenNebula
# @return [Integer, OpenNebula::Error] the new Template ID in case of
# success, error otherwise
REMOVE_VNET_ATTRS = %w{AR_ID BRIDGE CLUSTER_ID IP MAC TARGET NIC_ID
VN_MAD SECURITY_GROUPS VLAN_ID}
NETWORK_ID VN_MAD SECURITY_GROUPS VLAN_ID}
REMOVE_IMAGE_ATTRS = %w{DEV_PREFIX SOURCE ORIGINAL_SIZE SIZE
DISK_SNAPSHOT_TOTAL_SIZE DRIVER IMAGE_STATE SAVE CLONE READONLY
@ -917,10 +917,6 @@ module OpenNebula
nic.delete_element(attr)
end
if !nic['NETWORK_NAME'].empty? && !nic['NETNETWORK_UNAME'].empty?
nic.delete_element('NETWORK_ID')
end
replace << "NIC = [ " << nic.template_like_str(".").tr("\n", ",\n") << " ] \n"
end