Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-luna-valero committed Jul 17, 2024
1 parent 503348e commit d6f64ab
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions fedcloud_vm_monitoring/site_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,16 @@ def get_vm_image_volume_show(self, volume_id):
):
return (
result["volume_image_metadata"]["sl:osname"]
+ " " + result["volume_image_metadata"]["sl:osversion"]
+ " "
+ result["volume_image_metadata"]["sl:osversion"]
)
elif ("volume_image_metadata" in result) and (
"os_distro" and "os_version" in result["volume_image_metadata"]
):
return (
result["volume_image_metadata"]["os_distro"]
+ " " + result["volume_image_metadata"]["os_version"]
+ " "
+ result["volume_image_metadata"]["os_version"]
)
elif ("volume_image_metadata" in result) and (
"image_name" in result["volume_image_metadata"]
Expand Down Expand Up @@ -158,7 +160,8 @@ def get_vm_image(self, vm_id, image_name, image_id):
if "sl:osname" and "sl:osversion" in result["properties"]:
return (
result["properties"]["sl:osname"]
+ " " + result["properties"]["sl:osversion"]
+ " "
+ result["properties"]["sl:osversion"]
)
else:
return self.get_vm_image_server_show(vm_id)
Expand Down

0 comments on commit d6f64ab

Please sign in to comment.