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