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:
Borne Mace 2018-05-29 20:26:16 -07:00
parent a49cddd8fa
commit 5d8343a3b9
1 changed files with 1 additions and 1 deletions

View File

@ -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)