Skip to content
Snippets Groups Projects
Unverified Commit 6c30b3f2 authored by Xingjian Zhang's avatar Xingjian Zhang Committed by GitHub
Browse files

Add throwing error when specifying unsupported os in Vagrant (#9965)

parent 0104396c
No related branches found
No related tags found
No related merge requests found
......@@ -83,6 +83,13 @@ $playbook ||= "cluster.yml"
host_vars = {}
# throw error if os is not supported
if ! SUPPORTED_OS.key?($os)
puts "Unsupported OS: #{$os}"
puts "Supported OS are: #{SUPPORTED_OS.keys.join(', ')}"
exit 1
end
$box = SUPPORTED_OS[$os][:box]
# if $inventory is not set, try to use example
$inventory = "inventory/sample" if ! $inventory
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment