1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #7058 from jkleckner/fix-vars_prompt-when-default-False

Fix #7057 missing False default for vars_prompt
This commit is contained in:
James Cammarata 2014-05-09 00:29:31 -05:00
commit 9b9b4d50fe

View file

@ -643,7 +643,7 @@ class PlaybookCallbacks(object):
def on_vars_prompt(self, varname, private=True, prompt=None, encrypt=None, confirm=False, salt_size=None, salt=None, default=None): def on_vars_prompt(self, varname, private=True, prompt=None, encrypt=None, confirm=False, salt_size=None, salt=None, default=None):
if prompt and default: if prompt and default is not None:
msg = "%s [%s]: " % (prompt, default) msg = "%s [%s]: " % (prompt, default)
elif prompt: elif prompt:
msg = "%s: " % prompt msg = "%s: " % prompt