From 96a92a73f1585deb6c936592d4602bf210109eed Mon Sep 17 00:00:00 2001 From: Mark Steve Samson Date: Tue, 4 Mar 2014 13:13:23 +0800 Subject: [PATCH] Fix KeyError when `-v` is not specified in `fig rm` --- fig/cli/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fig/cli/main.py b/fig/cli/main.py index e64769f0..178a61d0 100644 --- a/fig/cli/main.py +++ b/fig/cli/main.py @@ -182,7 +182,7 @@ class TopLevelCommand(Command): print("Going to remove", list_containers(stopped_containers)) if yesno("Are you sure? [yN] ", default=False): self.project.remove_stopped(service_names=options['SERVICE'], - remove_volumes=options['-v']) + remove_volumes=options.get('-v', False)) else: print("No stopped containers")