diff --git a/tasks/vagrant.rb b/tasks/vagrant.rb index bf16ace..9594a86 100755 --- a/tasks/vagrant.rb +++ b/tasks/vagrant.rb @@ -244,7 +244,10 @@ def tear_down(node_name, inventory_location) end begin - result = provision(platform, inventory_location, enable_synced_folder, provider, cpus, memory, hyperv_vswitch, hyperv_smb_username, hyperv_smb_password, box_url, password, vars) if action == 'provision' + if action == 'provision' + result = provision(platform, inventory_location, enable_synced_folder, provider, cpus, memory, hyperv_vswitch, hyperv_smb_username, hyperv_smb_password, box_url, password, +vars) + end result = tear_down(node_name, inventory_location) if action == 'tear_down' puts result.to_json exit 0