From 8156ad3760c988d44abcd028797721c80b29a33c Mon Sep 17 00:00:00 2001 From: JustInVTime Date: Thu, 7 May 2015 18:37:28 +0200 Subject: [PATCH] Delimiter param must be a string --- v1/ansible/runner/lookup_plugins/csvfile.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/v1/ansible/runner/lookup_plugins/csvfile.py b/v1/ansible/runner/lookup_plugins/csvfile.py index ce5a2b77d2f..a9ea8ed90cd 100644 --- a/v1/ansible/runner/lookup_plugins/csvfile.py +++ b/v1/ansible/runner/lookup_plugins/csvfile.py @@ -63,7 +63,10 @@ class LookupModule(object): for param in params[1:]: name, value = param.split('=') assert(name in paramvals) - paramvals[name] = value + if name == 'delimiter': + paramvals[name] = str(value) + else: + paramvals[name] = value except (ValueError, AssertionError), e: raise errors.AnsibleError(e)