mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
The Univention modules have a issue with an unassigned variable. (#55083)
The variable diff is only assigned if state is 'present', else the variable is unused. But the module will return the diff variable as a return value. If the state isn't 'present' the module will fail with an python UnboundLocalError exception.
This commit is contained in:
parent
7adfb1f714
commit
ee25c34d00
5 changed files with 5 additions and 0 deletions
|
@ -170,6 +170,7 @@ def main():
|
|||
mx = module.params['mx']
|
||||
state = module.params['state']
|
||||
changed = False
|
||||
diff = None
|
||||
|
||||
obj = list(ldap_search(
|
||||
'(&(objectClass=dNSZone)(zoneName={0}))'.format(zone),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue