From 9c692f2335961597004cacac507a6de763313b1a Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sat, 11 Apr 2020 23:07:09 +0200 Subject: [PATCH] Fix bad logic --- autonomic/command/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autonomic/command/actions.py b/autonomic/command/actions.py index 7ae757e..b8e7c8f 100644 --- a/autonomic/command/actions.py +++ b/autonomic/command/actions.py @@ -20,7 +20,7 @@ def actions(ctx): question = qlist("action", "Which Ansible action?", choices,) action = prompt(question)["action"] - if action in any(("newhetzner", "rmhetzner")): + if any(action in choice for choice in ["newhetzner", "rmhetzner"]): choices = ["prod", "test", "cicd"] question = qlist("key", "Which Hetzner API key?", choices) key = prompt(question)["key"]