fix(itam): only update software version if different

!38 #75
This commit is contained in:
2024-07-06 15:28:00 +09:30
parent fe34b8274d
commit 3bceb66600

View File

@ -324,9 +324,12 @@ this setting populated, no device will be created and the endpoint will return H
device_software.save()
device_software.installedversion = software_version
device_software.save()
if device_software.installedversion.name != software_version.name:
device_software.installedversion = software_version
device_software.save()
if device and operating_system and operating_system_version and device_operating_system: