lib/testlab/container/actions.rb in testlab-1.15.1 vs lib/testlab/container/actions.rb in testlab-1.16.0
- old
+ new
@@ -69,11 +69,11 @@
self.lxc_clone.start_ephemeral(clone_args)
else
self.lxc.start(start_args)
end
- (self.state != :running) and raise ContainerError, "The container failed to online! (did you create it? Check status with 'tl status')"
+ (self.state != :running) and raise ContainerError, "The container #{self.id.inspect} failed to online! (did you create it? Check status with 'tl status')"
ZTK::TCPSocketCheck.new(:ui => @ui, :host => self.primary_interface.ip, :port => 22).wait
# If we are not in ephemeral mode we should attempt to provision our
# defined users.
@@ -117,10 +117,10 @@
# If we are using a memory backed COW filesystem for the ephemeral
# clones then it will be released when the container is stopped.
self.persist and self.lxc.destroy(%(-f))
end
- (self.state == :running) and raise ContainerError, "The container failed to offline!"
+ (self.state == :running) and raise ContainerError, "The container #{self.id.inspect} failed to offline!"
do_provisioner_callbacks(self, :down, @ui)
end
true