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:
parent
8a6a2aba75
commit
c11fbd54e1
1 changed files with 5 additions and 1 deletions
|
@ -100,8 +100,10 @@ def set_selection(module, pkg, question, vtype, value, unseen):
|
||||||
answer = [ question ]
|
answer = [ question ]
|
||||||
if 'vtype':
|
if 'vtype':
|
||||||
answer.append(vtype)
|
answer.append(vtype)
|
||||||
answer.append(value)
|
|
||||||
|
|
||||||
|
if value is None:
|
||||||
|
value = ''
|
||||||
|
answer.append(value)
|
||||||
data = ' '.join(answer)
|
data = ' '.join(answer)
|
||||||
|
|
||||||
setsel = module.get_bin_path('debconf-set-selections', True)
|
setsel = module.get_bin_path('debconf-set-selections', True)
|
||||||
|
@ -159,3 +161,5 @@ def main():
|
||||||
|
|
||||||
# import module snippets
|
# import module snippets
|
||||||
from ansible.module_utils.basic import *
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
|
main()
|
||||||
|
|
Loading…
Add table
Reference in a new issue