diff --git a/src/cli/one_helper/onehost_helper.rb b/src/cli/one_helper/onehost_helper.rb index a236ba5b64..effc24456c 100644 --- a/src/cli/one_helper/onehost_helper.rb +++ b/src/cli/one_helper/onehost_helper.rb @@ -440,9 +440,7 @@ class OneHostHelper < OpenNebulaHelper::OneHelper wilds.each do |wild| if wild['IMPORT_TEMPLATE'] wild_tmplt = Base64::decode64(wild['IMPORT_TEMPLATE']).split("\n") - name = wild_tmplt.select { |line| - line[/^NAME/] - }[0].split("=")[1].gsub("\"", " ").strip + name = wild['VM_NAME'] import = wild_tmplt.select { |line| line[/^IMPORT_VM_ID/] }[0].split("=")[1].gsub("\"", " ").strip