From 3e19b4d3e6ce1019b98b4933aa95899d9112e027 Mon Sep 17 00:00:00 2001 From: Jason SECULA Date: Wed, 9 Jul 2025 18:36:23 +0200 Subject: [PATCH] =?UTF-8?q?Modification=20des=20informations=20de=20log=20?= =?UTF-8?q?pour=20que=20l'identification=20de=20l'appareil=20soit=20pr?= =?UTF-8?q?=C3=A9sent=20pour=20les=20erreurs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/syncGLPI.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/syncGLPI.py b/scripts/syncGLPI.py index 7841f70..e641831 100644 --- a/scripts/syncGLPI.py +++ b/scripts/syncGLPI.py @@ -173,10 +173,10 @@ for device in devices: deviceID, data, count = glpiapi.GetDevice(device) apps = airwatch.GetDeviceApps(device) if(count > 1): - logger.error(f"{count} devices matching airwatch device in GLPI (GLPI ids = {', '.join(deviceID)}), skipping this device...") + logger.error(f"{count} devices matching airwatch device {device.FriendlyName} (id={device.Id}) in GLPI (GLPI ids = {', '.join(deviceID)}), skipping this device...") continue if(count == 0): - logger.error(f"Device not found in GLPI, is it in the trash bin ? Skipping device...") + logger.error(f"Device {device.FriendlyName} (id={device.Id}) not found in GLPI, is it in the trash bin ? Skipping device...") continue inventory = glpiapi.CreateInventoryForAirwatchDevice(device, data["1"], apps)