diff --git a/glpi/glpi.py b/glpi/glpi.py index 9e67b45..86b3bce 100644 --- a/glpi/glpi.py +++ b/glpi/glpi.py @@ -737,7 +737,7 @@ def search_engine(self, item_name, criteria): # build searchtype argument # -> optional! defaults to "contains" on the server if empty if 'searchtype' in c and c['searchtype'] is not None: - uri = (uri + "&criteria[%d][searchtype]=%s".format(idx, + uri = (uri + "&criteria[%d][searchtype]=%s" % (idx, c['searchtype'])) else: uri = uri + "&criteria[%d][searchtype]=" % (idx)