mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
B #5205: simplify host offline detection in onehost sync
(cherry picked from commit 11bebb6e689fd403c99d03e04fde28e967de8c02)
This commit is contained in:
parent
aba62644a7
commit
f3b5f20a4d
@ -268,7 +268,7 @@ class OneHostHelper < OpenNebulaHelper::OneHelper
|
||||
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'
|
||||
next if Host::HOST_STATES[state.to_i] == 'OFFLINE'
|
||||
|
||||
host_version=host['TEMPLATE/VERSION']
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user