Skip to content

Commit

Permalink
Bug #3627: onehost --sync should not try to update hybrid hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaime Melis committed Feb 25, 2015
1 parent 760a829 commit f1a8362
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/cli/one_helper/onehost_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,16 @@ def sync(host_ids, options)
next if host['CLUSTER_ID'].to_i != cluster_id
end

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"

host_version=host['TEMPLATE/VERSION']

begin
Expand Down

0 comments on commit f1a8362

Please sign in to comment.