Fix host destroy double check logic
The check for whether a prompt should be provided on host destroy had the logic reversed. It should only show up when --includedata is provided. This will now behave as expected. Change-Id: Id90960ab4e2d4bbaf11ced8f484014766bf7668e
This commit is contained in:
parent
a49cddd8fa
commit
5d8343a3b9
|
@ -90,7 +90,7 @@ class HostDestroy(Command):
|
|||
if parsed_args.removeimages:
|
||||
remove_images = True
|
||||
|
||||
if not include_data:
|
||||
if include_data:
|
||||
question = ('This will delete all containers and data'
|
||||
', are you sure? (y/n)')
|
||||
answer = raw_input(question)
|
||||
|
|
Loading…
Reference in New Issue