Skip to content

Commit

Permalink
further checks in image properties
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-luna-valero committed Jul 17, 2024
1 parent a83797b commit 1a92728
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fedcloud_vm_monitoring/site_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@ def get_vm_image(self, vm_id, image_name, image_id):
+ " "
+ result["properties"]["sl:osversion"]
)
elif "os_distro" and "os_version" in result["properties"]:
return (
result["properties"]["os_distro"]
+ " "
+ result["properties"]["os_version"]
)
else:
return self.get_vm_image_server_show(vm_id)
except SiteMonitorException:
Expand Down

0 comments on commit 1a92728

Please sign in to comment.