mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-11 15:15:26 +01:00
fix unbound variable error
This commit is contained in:
parent
0eb6a7a437
commit
f1b36ba1c2
1 changed files with 1 additions and 0 deletions
|
|
@ -856,6 +856,7 @@ def main():
|
|||
zone = module.params['zone']
|
||||
target = module.params['target']
|
||||
|
||||
port = None
|
||||
if module.params['port'] is not None:
|
||||
if '/' in module.params['port']:
|
||||
port, port_protocol = module.params['port'].strip().split('/')
|
||||
|
|
|
|||
Loading…
Reference in a new issue