mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Signed-off-by: Adam Miller <maxamillion@fedoraproject.org>
This commit is contained in:
parent
4e0666fc4a
commit
91ea8e5eaf
1 changed files with 1 additions and 1 deletions
|
@ -527,7 +527,7 @@ def main():
|
||||||
source = module.params['source']
|
source = module.params['source']
|
||||||
|
|
||||||
if module.params['port'] is not None:
|
if module.params['port'] is not None:
|
||||||
port, protocol = module.params['port'].split('/')
|
port, protocol = module.params['port'].strip().split('/')
|
||||||
if protocol is None:
|
if protocol is None:
|
||||||
module.fail_json(msg='improper port format (missing protocol?)')
|
module.fail_json(msg='improper port format (missing protocol?)')
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue