daniel-lynch / daniel_lynch.passbolt

Passbolt Ansible collection
https://galaxy.ansible.com/daniel_lynch/passbolt
GNU General Public License v3.0
6 stars 7 forks source link

fixes local variable 'fingerprint' referenced before assignment #8

Closed lukasskopos closed 1 year ago

lukasskopos commented 1 year ago

If fingerprint param is not used Ansible will throw an error:

An unhandled exception occurred while running the lookup plugin 'daniel_lynch.passbolt.get_password'. Error was a <class 'UnboundLocalError'>, original message: local variable 'fingerprint' referenced before assignment. local variable 'fingerprint' referenced before assignment

This PR fixes that issue.

daniel-lynch commented 1 year ago

Thanks @lukasskopos!