From f1c922eb9537294aa61ef2ac42c11a88a97db024 Mon Sep 17 00:00:00 2001 From: Jaime Melis Date: Mon, 9 Mar 2015 18:58:29 +0100 Subject: [PATCH] Bug #3627: onehost --sync skips PUBLIC_CLOUD = YES hosts --- src/cli/one_helper/onehost_helper.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/cli/one_helper/onehost_helper.rb b/src/cli/one_helper/onehost_helper.rb index 729721448e..8038cc93a9 100644 --- a/src/cli/one_helper/onehost_helper.rb +++ b/src/cli/one_helper/onehost_helper.rb @@ -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']