diff --git a/Rakefile b/Rakefile index 981220d..6abf750 100644 --- a/Rakefile +++ b/Rakefile @@ -23,17 +23,17 @@ task :acceptance do install_type = 'aio' target = ENV['platform'] - unless target =~ /type=/ - puts "INFO: adding 'type=#{install_type}' to host config" - target += "{type=#{install_type}}" - end - if ! target STDERR.puts 'TEST_TARGET environment variable is not set' STDERR.puts 'setting to default value of "centos7-64ma".' target = "centos7-64ma{type=#{install_type}}" end + unless target =~ /type=/ + puts "INFO: adding 'type=#{install_type}' to host config" + target += "{type=#{install_type}}" + end + cli = BeakerHostGenerator::CLI.new([target]) nodeset_dir = 'spec/acceptance/nodesets' nodeset = "#{nodeset_dir}/#{target}.yml"