From f3b5f20a4d28cab9c3199104d9524bb78cdcb588 Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Fri, 7 Jul 2017 12:35:14 +0200 Subject: [PATCH] B #5205: simplify host offline detection in onehost sync (cherry picked from commit 11bebb6e689fd403c99d03e04fde28e967de8c02) --- src/cli/one_helper/onehost_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']