fortinet-ansible-dev / ansible-galaxy-fortios-collection

GNU General Public License v3.0
84 stars 48 forks source link

KeyError: 'ldb_method' with --check #330

Closed milad-24 closed 1 month ago

milad-24 commented 1 month ago

I got this error when I ran my Ansible playbook with --check parameter.

TASK [fortigate : virtual server] *********************************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: KeyError: 'ldb_method'
MaxxLiu22 commented 1 month ago

Hi @milad-24 ,

Thank you for raising this issue, the difference check function has some issue in Ansible FOS 2.3.6, please upgrade to Ansible FOS 2.3.7 and give a try, sorry for the inconvenience. Let me know if the issue still exists.

ansible-galaxy collection install fortinet.fortios:2.3.7

Thanks, Maxx

milad-24 commented 1 month ago

I tried fortinet.fortios:2.3.7 and as I see the error is resolved! Thank you.