From ecbd0bfa85a964d1420d6f43fc260cf43c26f587 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 3 Dec 2013 14:36:14 -0800 Subject: [PATCH] provisioners/docker: style nitpicks --- plugins/provisioners/docker/docker_client.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/provisioners/docker/docker_client.rb b/plugins/provisioners/docker/docker_client.rb index 9c10e627c..40c3094c5 100644 --- a/plugins/provisioners/docker/docker_client.rb +++ b/plugins/provisioners/docker/docker_client.rb @@ -39,7 +39,7 @@ module VagrantPlugins end def run_container(config) - raise "Container's cidfile was not provided!" unless config[:cidfile] + raise "Container's cidfile was not provided!" if !config[:cidfile] id = "$(cat #{config[:cidfile]})" @@ -55,7 +55,7 @@ module VagrantPlugins end def start_container(id) - unless container_running?(id) + if !container_running?(id) @machine.communicate.sudo("docker start #{id}") end end