mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-08-01 04:14:46 +00:00
fix unbound variable error
This commit is contained in:
@@ -856,6 +856,7 @@ def main():
|
|||||||
zone = module.params['zone']
|
zone = module.params['zone']
|
||||||
target = module.params['target']
|
target = module.params['target']
|
||||||
|
|
||||||
|
port = None
|
||||||
if module.params['port'] is not None:
|
if module.params['port'] is not None:
|
||||||
if '/' in module.params['port']:
|
if '/' in module.params['port']:
|
||||||
port, port_protocol = module.params['port'].strip().split('/')
|
port, port_protocol = module.params['port'].strip().split('/')
|
||||||
|
|||||||
Reference in New Issue
Block a user