summaryrefslogtreecommitdiff
path: root/acceptance/.shared
diff options
context:
space:
mode:
authorSalim Alam <salam@chef.io>2016-02-19 15:08:54 -0800
committerSalim Alam <salam@chef.io>2016-02-19 15:08:54 -0800
commit82a6fdef60c662bc99476d88ee93bb1531e5cc6d (patch)
tree41383dd19d3dd46cd9062dfc6333406aa98e71a1 /acceptance/.shared
parent8f9a0dbd88de3014161bebfef7a02821e0010a37 (diff)
downloadchef-82a6fdef60c662bc99476d88ee93bb1531e5cc6d.tar.gz
Fix nil warnings, make inspec tests work
Diffstat (limited to 'acceptance/.shared')
-rw-r--r--acceptance/.shared/kitchen_acceptance/libraries/kitchen.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/acceptance/.shared/kitchen_acceptance/libraries/kitchen.rb b/acceptance/.shared/kitchen_acceptance/libraries/kitchen.rb
index d3913ebb11..916ca5ca7a 100644
--- a/acceptance/.shared/kitchen_acceptance/libraries/kitchen.rb
+++ b/acceptance/.shared/kitchen_acceptance/libraries/kitchen.rb
@@ -4,7 +4,7 @@ module KitchenAcceptance
property :command, String, name_property: true
property :driver, %w(ec2 vagrant), coerce: proc { |v| v.to_s }, default: lazy { ENV["KITCHEN_DRIVER"] || :ec2 }
- property :instances, String, default: lazy { ENV["KITCHEN_INSTANCES"] }
+ property :instances, String, default: lazy { ENV["KITCHEN_INSTANCES"] ? ENV["KITCHEN_INSTANCES"] : "" }
property :kitchen_dir, String, default: Chef.node['chef-acceptance']['suite-dir']
property :chef_product, String, default: lazy {
ENV["KITCHEN_CHEF_PRODUCT"] ||
@@ -22,8 +22,8 @@ module KitchenAcceptance
(ENV["PROJECT_NAME"] == chef_product ? ENV["OMNIBUS_BUILD_VERSION"] : nil) ||
"latest"
}
- property :artifactory_username, String, default: lazy { ENV["ARTIFACTORY_USERNAME"] }
- property :artifactory_password, String, default: lazy { ENV["ARTIFACTORY_PASSWORD"] }
+ property :artifactory_username, String, default: lazy { ENV["ARTIFACTORY_USERNAME"] ? ENV["ARTIFACTORY_USERNAME"] : "" }
+ property :artifactory_password, String, default: lazy { ENV["ARTIFACTORY_PASSWORD"] ? ENV["ARTIFACTORY_PASSWORD"] : "" }
property :env, Hash, default: {}
property :kitchen_options, String, default: lazy { ENV["PROJECT_NAME"] ? "-c -l debug" : "-c" }