We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
The idempotency of this API call is not working properly: https://github.com/IBM-Security/ibmsecurity/blob/master/ibmsecurity/isam/base/audit_configuration.py
The issue being that the json_compare is often providing back false due to the misalignment between the config lists.
To solve this problem, the following _check method does the sorting:
from operator import itemgetter
"config": config,
by
"config": sorted(config, key=itemgetter('key'))
aud_cfg['config'] = sorted(aud_cfg['config'], key=itemgetter('key'))
These changes will make sure that both lists are sorted on the 'key' element prior comparing them.
Cédric Servais
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
The idempotency of this API call is not working properly: https://github.com/IBM-Security/ibmsecurity/blob/master/ibmsecurity/isam/base/audit_configuration.py
The issue being that the json_compare is often providing back false due to the misalignment between the config lists.
To solve this problem, the following _check method does the sorting:
by
These changes will make sure that both lists are sorted on the 'key' element prior comparing them.
Cédric Servais
The text was updated successfully, but these errors were encountered: