From 02335843433bfdcd2f2bbe6c13235e0e4bf31775 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 6 Feb 2014 11:59:37 -0500 Subject: [PATCH] fixed main() issue created in prev fix, now values are empty string if they were None Signed-off-by: Brian Coca --- library/system/debconf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/library/system/debconf b/library/system/debconf index 35545343b2..52c646e23c 100644 --- a/library/system/debconf +++ b/library/system/debconf @@ -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()