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"]