Skip to content

Commit

Permalink
Use double quotes in shell command for compatibility with Windows (#6).
Browse files Browse the repository at this point in the history
  • Loading branch information
nigma committed Apr 18, 2012
1 parent a7aefe8 commit 85279df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/veewee/provider/virtualbox/box/helper/natinterface.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module Virtualbox
module BoxCommand

def natinterface
command="#{@vboxcmd} showvminfo --details --machinereadable '#{self.name}'"
command="#{@vboxcmd} showvminfo --details --machinereadable \"#{self.name}\""
shell_results=shell_exec("#{command}")

nic_id=shell_results.stdout.split(/\n/).grep(/^nic/).grep(/nat/)[0].split('=')[0][-1,1]
Expand Down

0 comments on commit 85279df

Please sign in to comment.