From 5d8343a3b9299e0ee0124b0a63497168b0245451 Mon Sep 17 00:00:00 2001 From: Borne Mace Date: Tue, 29 May 2018 20:26:16 -0700 Subject: [PATCH] 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 --- kolla_cli/commands/host.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kolla_cli/commands/host.py b/kolla_cli/commands/host.py index 31d371b..70c70f6 100644 --- a/kolla_cli/commands/host.py +++ b/kolla_cli/commands/host.py @@ -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)