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

(cherry picked from commit 327559e1a4)
This commit is contained in:
Alejandro Huertas Herrero authored and Tino Vazquez committed 2020-03-18 16:33:26 +01:00
1 parent 361d5938ff
commit 2f61b660fc
1 file changed
+1
@@ -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'])