diff --git a/lib/lxc/start_ephemeral.rb b/lib/lxc/start_ephemeral.rb index 3823705..e7d66ce 100644 --- a/lib/lxc/start_ephemeral.rb +++ b/lib/lxc/start_ephemeral.rb @@ -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.")