lib/veewee/provider/virtualbox/box/helper/natinterface.rb in veewee-0.3.0.alpha8 vs lib/veewee/provider/virtualbox/box/helper/natinterface.rb in veewee-0.3.0.alpha9
- old
+ new
@@ -2,10 +2,10 @@
module Provider
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]
return nic_id
end