Thanks James, I've opened https://github.com/ansible/ansible/issues/9244.
On Wednesday, October 1, 2014 5:31:13 PM UTC-4, James Cammarata wrote:
>
> Hi Kevin, this appears to be a bug. Could you please open a GitHub issue
> for this? The fix for this is to remove the `.split(',')` from that line.
>
> On Wed, Oct 1, 2014 at 4:18 PM, Kevin Formsma <[email protected]
> <javascript:>> wrote:
>
>> I'm trying to use the new exclude_hosts option as part of the drained
>> state on the wait_for module (
>> https://github.com/ansible/ansible/pull/7260). I'm using the latest
>> source from git.
>>
>> However I'm getting the following error:
>> Traceback (most recent call last):
>> File
>> "/home/monk/.ansible/tmp/ansible-tmp-1412198038.01-173699330634982/wait_for"
>> , line 1967, in <module>
>> main()
>> File
>> "/home/monk/.ansible/tmp/ansible-tmp-1412198038.01-173699330634982/wait_for"
>> , line 326, in main
>> exclude_hosts = params['exclude_hosts'].split(',')
>> AttributeError: 'list' object has no attribute 'split'
>>
>>
>> My task looks like:
>> wait_for: host={{ ansible_hostname }} port=8080 state=drained
>> exclude_hosts=somehost1,somehost2
>>
>>
>> Any ideas?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Ansible Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected]
>> <javascript:>.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/31ac7699-cc36-48f0-b6a1-26ce43158d65%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/ansible-project/31ac7699-cc36-48f0-b6a1-26ce43158d65%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/afeaeed3-8430-4a36-92ce-5a443cbc1531%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.