浏览代码

Fix KeyError when `-v` is not specified in `fig rm`

Mark Steve Samson 11 年之前
父节点
当前提交
96a92a73f1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fig/cli/main.py

+ 1 - 1
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")