mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
let implied type do the spliting
This commit is contained in:
parent
7d577e4447
commit
ba040784b8
1 changed files with 1 additions and 3 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue