lib/infrataster/server.rb in infrataster-0.3.1 vs lib/infrataster/server.rb in infrataster-0.3.2

- old
+ new

@@ -140,11 +140,11 @@ def ssh_config_for_vagrant(name) config = nil Dir.mktmpdir do |dir| output = File.join(dir, 'ssh-config') - `/usr/bin/vagrant ssh-config #{Shellwords.shellescape(name)} > #{Shellwords.shellescape(output)}` + `vagrant ssh-config #{Shellwords.shellescape(name)} > #{Shellwords.shellescape(output)}` if $?.exitstatus != 0 raise Error, "`vagrant ssh-config` failed. Please check if VMs are running or not." end config = Net::SSH::Config.for(@name.to_s, [output]) end @@ -194,6 +194,5 @@ matched.first end end end -