From ba040784b873fbe452d17856ce2ad8b5d69a7fbd Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 11 Nov 2014 15:34:55 -0500 Subject: [PATCH] let implied type do the spliting --- lib/ansible/modules/utilities/logic/wait_for.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/ansible/modules/utilities/logic/wait_for.py b/lib/ansible/modules/utilities/logic/wait_for.py index 88e821cfdb5..ae316fe1a17 100644 --- a/lib/ansible/modules/utilities/logic/wait_for.py +++ b/lib/ansible/modules/utilities/logic/wait_for.py @@ -305,7 +305,7 @@ def main(): path=dict(default=None), search_regex=dict(default=None), state=dict(default='started', choices=['started', 'stopped', 'present', 'absent', 'drained']), - exclude_hosts=dict(default=None) + exclude_hosts=dict(default=None, type='list') ), ) @@ -322,8 +322,6 @@ def main(): state = params['state'] path = params['path'] search_regex = params['search_regex'] - if isinstance(params['exclude_hosts'], basestring): - params['exclude_hosts'] = params['exclude_hosts'].split(',') if port and path: module.fail_json(msg="port and path parameter can not both be passed to wait_for")