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

M #~: add rescue in template import (#4868)

Signed-off-by: Carlos Herrera <cherrera@opennebula.io>
This commit is contained in:
Carlos J. Herrera 2020-06-02 11:22:19 -04:00 committed by GitHub
parent 4f144b2943
commit 72de7de7ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -441,7 +441,7 @@ class Template
vswitch = []
vc_hosts = vc_pg.host
vc_hosts.each do |vc_host|
host_pgs = vc_host.configManager.networkSystem.networkInfo.portgroup
host_pgs = vc_host.configManager.networkSystem.networkInfo.portgroup rescue []
host_pgs.each do |pg|
if vc_pg.name == pg.spec.name
vswitch << pg.spec.vswitchName