Merge pull request #1499 from specnazzz/fix-seport-ports

seport module fails when the `ports` argument is a integer
This commit is contained in:
Brian Coca 2016-01-25 23:57:54 -05:00
commit a7ad0bc7be

View file

@ -234,7 +234,7 @@ def main():
if not selinux.is_selinux_enabled(): if not selinux.is_selinux_enabled():
module.fail_json(msg="SELinux is disabled on this host.") 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'] proto = module.params['proto']
setype = module.params['setype'] setype = module.params['setype']
state = module.params['state'] state = module.params['state']