Skip to content

Commit

Permalink
(registration) Fix traceback where reg is not defined in data.
Browse files Browse the repository at this point in the history
  • Loading branch information
spointu committed Nov 28, 2023
1 parent 23469a3 commit 49c6812
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pulse_xmpp_master_substitute/lib/plugins/xmpp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1438,7 +1438,7 @@ def updateMachineGlpiInformationInventory(
location_id_xmpp = "NULL"
else:
location_id_xmpp = retlocation["id"]
if "win" in data["information"]["info"]["platform"].lower():
if "win" in data["information"]["info"]["platform"].lower() and "reg" in glpiinformation['data']:
for regwindokey in glpiinformation["data"]["reg"]:
if glpiinformation["data"]["reg"][regwindokey][0] is not None:
self.create_Glpi_register_keys(
Expand Down

0 comments on commit 49c6812

Please sign in to comment.