From 855bf75709a60a0834dcf4b32659d01ebcb06cba Mon Sep 17 00:00:00 2001 From: Michal Mach Date: Thu, 14 Jan 2016 11:47:19 +0100 Subject: [PATCH] Fix seport module issue when ports argument is interpolated from a variable and is a int --- lib/ansible/modules/extras/system/seport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/system/seport.py b/lib/ansible/modules/extras/system/seport.py index fb1cef661a..85918d8dac 100644 --- a/lib/ansible/modules/extras/system/seport.py +++ b/lib/ansible/modules/extras/system/seport.py @@ -234,7 +234,7 @@ def main(): if not selinux.is_selinux_enabled(): module.fail_json(msg="SELinux is disabled on this host.") - ports = [x.strip() for x in module.params['ports'].split(',')] + ports = [x.strip() for x in str(module.params['ports']).split(',')] proto = module.params['proto'] setype = module.params['setype'] state = module.params['state']