From 91ea8e5eaf6ec2a57be0fc241c18717af8488c58 Mon Sep 17 00:00:00 2001 From: Adam Miller Date: Thu, 3 Aug 2017 16:19:25 -0500 Subject: [PATCH] Fixes #23895 firewalld handle port arg whitespace (#27577) Signed-off-by: Adam Miller --- lib/ansible/modules/system/firewalld.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/system/firewalld.py b/lib/ansible/modules/system/firewalld.py index cdc266e53b..156cc9d889 100644 --- a/lib/ansible/modules/system/firewalld.py +++ b/lib/ansible/modules/system/firewalld.py @@ -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: