1
0
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:
Javi Fontan 2017-07-07 12:35:14 +02:00
parent aba62644a7
commit f3b5f20a4d

View File

@ -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']