Closed jplitza closed 2 years ago
>>> criteria = [{"link": "AND", "criteria": [{"field": "Computer.name", "searchtype": "contains", "value": "example.com"}]}] >>> glpi.search("Computer", criteria=criteria) # returns the expected result >>> print(criteria) [{"link": "AND"}]
This is a problem when the input criteria are supposed to be used for another invocation, like when you have children groups in an Ansible GLPI inventory.
I'll open a PR fixing this in a minute.
This is a problem when the input criteria are supposed to be used for another invocation, like when you have children groups in an Ansible GLPI inventory.
I'll open a PR fixing this in a minute.