mirror of
https://github.com/docker/compose.git
synced 2025-07-27 07:34:10 +02:00
Fix KeyError when -v
is not specified in fig rm
This commit is contained in:
parent
48e7b4b0a6
commit
96a92a73f1
@ -182,7 +182,7 @@ class TopLevelCommand(Command):
|
|||||||
print("Going to remove", list_containers(stopped_containers))
|
print("Going to remove", list_containers(stopped_containers))
|
||||||
if yesno("Are you sure? [yN] ", default=False):
|
if yesno("Are you sure? [yN] ", default=False):
|
||||||
self.project.remove_stopped(service_names=options['SERVICE'],
|
self.project.remove_stopped(service_names=options['SERVICE'],
|
||||||
remove_volumes=options['-v'])
|
remove_volumes=options.get('-v', False))
|
||||||
else:
|
else:
|
||||||
print("No stopped containers")
|
print("No stopped containers")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user