Suppression du besoin du / de fin pour le serveur GLPI

This commit is contained in:
Jason SECULA
2025-06-17 18:03:01 +02:00
parent d3727f3c37
commit 3f6a46c345
3 changed files with 8 additions and 8 deletions

View File

@ -14,14 +14,14 @@ parser.add_argument("-force", action=argparse.BooleanOptionalAction)
args = parser.parse_args() args = parser.parse_args()
settingsDefault = { settingsDefault = {
"airwatchServer":"https://airwatchServer/", "airwatchServer":"https://airwatchServer",
"airwatchAPIKey":"APIKEY", "airwatchAPIKey":"APIKEY",
"airwatchAuthMethod":"CMSURL", "airwatchAuthMethod":"CMSURL",
"airwatchCertPath":"/path/to/cert", "airwatchCertPath":"/path/to/cert",
"airwatchCertPass":"certPassword", "airwatchCertPass":"certPassword",
"airwatchAPIUser":"UserAPI", "airwatchAPIUser":"UserAPI",
"airwatchAPIPassword":"PasswordUserAPI", "airwatchAPIPassword":"PasswordUserAPI",
"glpiServer":"http://127.0.0.1/glpi/", "glpiServer":"http://127.0.0.1/glpi",
"glpiAppToken":"GLPIAppToken", "glpiAppToken":"GLPIAppToken",
"glpiUserToken":"GLPIUserToken", "glpiUserToken":"GLPIUserToken",
"stagingUser":"staging-pr", "stagingUser":"staging-pr",
@ -173,7 +173,7 @@ GLPIHeaders = {
} }
# Adresse de recherche des appareils présents dans ordinateurs sur GLPI # Adresse de recherche des appareils présents dans ordinateurs sur GLPI
GLPIAPISearchComputer = 'apirest.php/search/computer?' GLPIAPISearchComputer = '/apirest.php/search/computer?'
for device in devices: for device in devices:
if(device["EnrollmentStatus"] != 'Enrolled'): if(device["EnrollmentStatus"] != 'Enrolled'):

View File

@ -1,12 +1,12 @@
{ {
"airwatchServer": "https://airwatchServer/", "airwatchServer": "https://airwatchServer",
"airwatchAPIKey": "APIKEY", "airwatchAPIKey": "APIKEY",
"airwatchAuthMethod": "CMSURL", "airwatchAuthMethod": "CMSURL",
"airwatchCertPath": "/path/to/cert", "airwatchCertPath": "/path/to/cert",
"airwatchCertPass": "certPassword", "airwatchCertPass": "certPassword",
"airwatchAPIUser": "UserAPI", "airwatchAPIUser": "UserAPI",
"airwatchAPIPassword": "PasswordUserAPI", "airwatchAPIPassword": "PasswordUserAPI",
"glpiServer": "http://127.0.0.1/glpi/", "glpiServer": "http://127.0.0.1/glpi",
"glpiAppToken": "GLPIAppToken", "glpiAppToken": "GLPIAppToken",
"glpiUserToken": "GLPIUserToken", "glpiUserToken": "GLPIUserToken",
"stagingUser": "staging-pr", "stagingUser": "staging-pr",

View File

@ -18,14 +18,14 @@ parser.add_argument("-force", action=argparse.BooleanOptionalAction)
args = parser.parse_args() args = parser.parse_args()
settingsDefault = { settingsDefault = {
"airwatchServer":"https://airwatchServer/", "airwatchServer":"https://airwatchServer",
"airwatchAPIKey":"APIKEY", "airwatchAPIKey":"APIKEY",
"airwatchAuthMethod":"CMSURL", "airwatchAuthMethod":"CMSURL",
"airwatchCertPath":"/path/to/cert", "airwatchCertPath":"/path/to/cert",
"airwatchCertPass":"certPassword", "airwatchCertPass":"certPassword",
"airwatchAPIUser":"UserAPI", "airwatchAPIUser":"UserAPI",
"airwatchAPIPassword":"PasswordUserAPI", "airwatchAPIPassword":"PasswordUserAPI",
"glpiServer":"http://127.0.0.1/glpi/", "glpiServer":"http://127.0.0.1/glpi",
"glpiAppToken":"GLPIAppToken", "glpiAppToken":"GLPIAppToken",
"glpiUserToken":"GLPIUserToken", "glpiUserToken":"GLPIUserToken",
"stagingUser":"staging-pr", "stagingUser":"staging-pr",
@ -246,7 +246,7 @@ GLPIHeaders = {
} }
# Adresse de recherche des appareils présents dans ordinateurs sur GLPI # Adresse de recherche des appareils présents dans ordinateurs sur GLPI
GLPIAPISearchComputer = 'apirest.php/search/computer?' GLPIAPISearchComputer = '/apirest.php/search/computer?'
platforms = { platforms = {
2:"Apple iOS", 2:"Apple iOS",