lib/testlab/node/lxc.rb in testlab-0.6.15 vs lib/testlab/node/lxc.rb in testlab-0.6.16
- old
+ new
@@ -9,12 +9,11 @@
# This object is used to control containers on the node via it's provider
#
# @return [LXC] An instance of LXC configured for this node.
def lxc(options={})
if (!defined?(@lxc) || @lxc.nil?)
- @lxc ||= ::LXC.new
- @lxc.use_sudo = true
- @lxc.use_ssh = self.ssh
+ @lxc_runner ||= ::LXC::Runner::SSH.new(:ui => @ui, :ssh => self.ssh)
+ @lxc ||= ::LXC.new(:ui => @ui, :runner => @lxc_runner)
end
@lxc
end
# Returns the machine type of the node.