mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
provisioners/docker: style nitpicks
This commit is contained in:
parent
8d6cac959f
commit
ecbd0bfa85
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue