mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-23 22:50:09 +03:00
B #5205: do not sync remotes on offline hosts
(cherry picked from commit 079ef241efb411c20ac424659a36b80f2b26c2ff)
This commit is contained in:
parent
e98ccd52b9
commit
aba62644a7
@ -262,10 +262,14 @@ class OneHostHelper < OpenNebulaHelper::OneHelper
|
||||
|
||||
vm_mad = host['VM_MAD'].downcase
|
||||
remote_remotes = host['TEMPLATE/REMOTE_REMOTES']
|
||||
state = host['STATE']
|
||||
|
||||
# Skip this host from remote syncing if it's a PUBLIC_CLOUD host
|
||||
next if host['TEMPLATE/PUBLIC_CLOUD'] == 'YES'
|
||||
|
||||
# Skip this host from remote syncing if it's OFFLINE
|
||||
next if self.class.state_to_str(state) == 'off'
|
||||
|
||||
host_version=host['TEMPLATE/VERSION']
|
||||
|
||||
begin
|
||||
|
Loading…
x
Reference in New Issue
Block a user