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

Signed-off-by: Adam Miller <maxamillion@fedoraproject.org>
pull/27709/merge
Adam Miller 7 years ago committed by Matt Davis
parent 4e0666fc4a
commit 91ea8e5eaf

@ -527,7 +527,7 @@ def main():
source = module.params['source']
if module.params['port'] is not None:
port, protocol = module.params['port'].split('/')
port, protocol = module.params['port'].strip().split('/')
if protocol is None:
module.fail_json(msg='improper port format (missing protocol?)')
else:

Loading…
Cancel
Save