You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
Looks like there are a couple of things getting in your way.
The first is that the YAML parser thinks the : (colon without escaping or quoting) is a misplaced key/value delimiter. If you put that in double quotes it passes thru to the next issue that being the csvfile lookup plugin makes a call to csvfile.reader with the delimiter string still wrapped in quotes. The delimiter param must be a single character causing another error.
I guess there are a few ways to go about addressing this in the core.
One is to have special string like COLON (like TAB) that gets converted to its single character form.
The other is to detect the delimiter string is more than a single character and assume that it's probably quoted.
I like the later solution because it handles any sort of quoted character someone may throw at it. I'm not fond of the idea of introducing a regex for an edge case where there wheren't any before. Perhaps a len and split combo like this would suffice?
if len(delimiter) > 1:
delimiter = delimiter.split(delimiter[0])[1]
Not exactly a bulletproof solution, but it's a pretty low cost fix to the issue.
Thoughts from the core team?
<tim/>
Brian Coca
unread,
Apr 29, 2015, 5:46:40 PM4/29/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
try quoting the delimiter
delimiter=':'
--
Brian Coca
Timothy Appnel
unread,
Apr 29, 2015, 5:51:37 PM4/29/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
The problem is that Raj is already inside of a single quoted string inside of a double quoted string. Doing what you suggest trips up the template parser.
Raj Desikavinayagompillai
unread,
Apr 29, 2015, 5:52:33 PM4/29/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message