diff --git a/src/cli/one_helper/onehost_helper.rb b/src/cli/one_helper/onehost_helper.rb index 35d930b6f0..18828b3b10 100644 --- a/src/cli/one_helper/onehost_helper.rb +++ b/src/cli/one_helper/onehost_helper.rb @@ -312,7 +312,7 @@ class OneHostHelper < OpenNebulaHelper::OneHelper end def get_wilds(host) - [host.to_hash['HOST']['TEMPLATE']['VM']].flatten + [host.to_hash['HOST']['TEMPLATE']['VM']].flatten.compact end def get_importable_wilds(host)