replace 'if !' with 'unless'
This commit is contained in:
parent
42ffa95758
commit
8dd0434386
|
@ -28,7 +28,7 @@ module LXC
|
||||||
|
|
||||||
dest.start(daemonize: opts[:daemonize])
|
dest.start(daemonize: opts[:daemonize])
|
||||||
|
|
||||||
if !dest.wait(:running, 5)
|
unless dest.wait(:running, 5)
|
||||||
dest.stop
|
dest.stop
|
||||||
dest.destroy if dest.defined?
|
dest.destroy if dest.defined?
|
||||||
raise ContainerError.new("The container '#{dest.name}' failed to start.")
|
raise ContainerError.new("The container '#{dest.name}' failed to start.")
|
||||||
|
|
Loading…
Reference in a new issue