mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Fix seport module issue when ports argument is interpolated from a variable and is a int
This commit is contained in:
@@ -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']
|
||||||
|
|||||||
Reference in New Issue
Block a user