1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fixes #23895 firewalld handle port arg whitespace (#27577)

Signed-off-by: Adam Miller <maxamillion@fedoraproject.org>
This commit is contained in:
Adam Miller 2017-08-03 16:19:25 -05:00 committed by Matt Davis
parent 4e0666fc4a
commit 91ea8e5eaf

View file

@ -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: