lib/minke/docker/consul.rb in minke-1.13.5 vs lib/minke/docker/consul.rb in minke-1.13.6
- old
+ new
@@ -22,11 +22,11 @@
##
# stop consul
def stop
@logger.info "Stopping Consul"
- @docker_runner.stop_container @container
- @docker_runner.delete_container @container
+ @docker_runner.stop_container @container unless @container == nil
+ @docker_runner.delete_container @container unless @container == nil
end
private
def start
@docker_runner.pull_image 'progrium/consul:latest' unless @docker_runner.find_image 'progrium/consul:latest'