Skip to content

Commit

Permalink
Fixes ansible#23895 firewalld handle port arg whitespace (ansible#27577)
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Miller <[email protected]>
  • Loading branch information
maxamillion authored and nitzmahone committed Aug 3, 2017
1 parent 4e0666f commit 91ea8e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/modules/system/firewalld.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 91ea8e5

Please sign in to comment.