Fix bad logic
This commit is contained in:
parent
324d58690d
commit
9c692f2335
@ -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"]
|
||||
|
Reference in New Issue
Block a user