diff --git a/src/cli/one_helper/onehost_helper.rb b/src/cli/one_helper/onehost_helper.rb index 6de9961721..e2a79c016d 100644 --- a/src/cli/one_helper/onehost_helper.rb +++ b/src/cli/one_helper/onehost_helper.rb @@ -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']