mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
use proper booleans for vars_prompt
This commit is contained in:
parent
68060002e8
commit
d95fd7414a
1 changed files with 3 additions and 2 deletions
|
@ -27,6 +27,7 @@ from ansible.module_utils._text import to_native, to_text
|
|||
from ansible.playbook import Playbook
|
||||
from ansible.template import Templar
|
||||
from ansible.utils.helpers import pct_to_int
|
||||
from ansible.module_utils.parsing.convert_bool import boolean
|
||||
from ansible.utils.path import makedirs_safe
|
||||
from ansible.utils.ssh_functions import check_for_controlpersist
|
||||
|
||||
|
@ -107,8 +108,8 @@ class PlaybookExecutor:
|
|||
vname = var['name']
|
||||
prompt = var.get("prompt", vname)
|
||||
default = var.get("default", None)
|
||||
private = var.get("private", True)
|
||||
confirm = var.get("confirm", False)
|
||||
private = boolean(var.get("private", True))
|
||||
confirm = boolean(var.get("confirm", False))
|
||||
encrypt = var.get("encrypt", None)
|
||||
salt_size = var.get("salt_size", None)
|
||||
salt = var.get("salt", None)
|
||||
|
|
Loading…
Reference in a new issue