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

Bug #3627: onehost --sync skips PUBLIC_CLOUD = YES hosts

This commit is contained in:
Jaime Melis 2015-03-09 18:58:29 +01:00
parent 736c44c0a1
commit f1c922eb95

View File

@ -226,12 +226,8 @@ class OneHostHelper < OpenNebulaHelper::OneHelper
vm_mad = host['VM_MAD'].downcase
remote_remotes = host['TEMPLATE/REMOTE_REMOTES']
# Skip this host from remote syncing unless:
# - the host is type "KVM"
# - the host is type "XEN"
# - the host has REMOTE_REMOTES defined in the template (useful
# for custom defined VMM types)
next unless remote_remotes || vm_mad == "kvm" || vm_mad == "xen"
# Skip this host from remote syncing if it's a PUBLIC_CLOUD host
next if host['TEMPLATE/PUBLIC_CLOUD'] == 'YES'
host_version=host['TEMPLATE/VERSION']