lib/testlab/container/lxc.rb in testlab-0.4.2 vs lib/testlab/container/lxc.rb in testlab-0.4.3

- old
+ new

@@ -18,10 +18,10 @@ tempfile = Tempfile.new("bootstrap") remote_tempfile = File.join("/tmp", File.basename(tempfile.path)) self.node.ssh.file(:target => File.join(self.lxc.fs_root, remote_tempfile), :chmod => '0777', :chown => 'root:root') do |file| file.puts(content) end - output = self.lxc.attach(%(/bin/bash), remote_tempfile) + output = self.lxc.attach(%(--), %(/bin/bash), remote_tempfile) if output =~ /No such file or directory/ raise ContainerError, "We could not find the bootstrap file!" end end