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

fixed main() issue created in prev fix, now values are empty string if they were None

Signed-off-by: Brian Coca <briancoca+ansible@gmail.com>
This commit is contained in:
Brian Coca 2014-02-06 11:59:37 -05:00
parent de956c57fe
commit 0233584343

View file

@ -100,8 +100,10 @@ def set_selection(module, pkg, question, vtype, value, unseen):
answer = [ question ]
if 'vtype':
answer.append(vtype)
answer.append(value)
if value is None:
value = ''
answer.append(value)
data = ' '.join(answer)
setsel = module.get_bin_path('debconf-set-selections', True)
@ -159,3 +161,5 @@ def main():
# import module snippets
from ansible.module_utils.basic import *
main()