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

B #4378: fix nic alias when NETWORK_SELECT=NO (#4379)

This commit is contained in:
Alejandro Huertas Herrero 2020-03-18 16:32:47 +01:00 committed by GitHub
parent 55b49ebb14
commit 327559e1a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,6 +106,7 @@ module OpenNebulaJSON
select_network = self['TEMPLATE/SUNSTONE/NETWORK_SELECT']
if (select_network && select_network.upcase == "NO")
params['template'].delete("NIC")
params['template'].delete("NIC_ALIAS")
end
template = template_to_str(params['template'])