diff --git a/scripts/includes/GLPIAPI.py b/scripts/includes/GLPIAPI.py index 39e147d..2b3b984 100644 --- a/scripts/includes/GLPIAPI.py +++ b/scripts/includes/GLPIAPI.py @@ -55,6 +55,7 @@ class GLPIAPI: return deviceID, data, search["totalcount"] elif(search["totalcount"] > 1): + deviceID = list(search["data"].keys()) return deviceID, search["data"], search["totalcount"] else: return None, None, 0