Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-luna-valero committed Oct 18, 2024
1 parent a72e4f1 commit b73e539
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions fedcloud_vm_monitoring/site_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,7 @@ def get_vm_image(self, vm_id, image_name, image_id, attached_volumes):
else:
# check volumes attached
if len(attached_volumes) > 0:
return self.get_vm_image_volume_show(
attached_volumes[0]["id"]
)
return self.get_vm_image_volume_show(attached_volumes[0]["id"])
else:
return "image name not found"
except SiteMonitorException:
Expand Down Expand Up @@ -316,7 +314,15 @@ def process_vm(self, vm):
)
)
output.append(
("VM image", self.get_vm_image(vm["ID"], vm["Image Name"], vm["Image ID"], vm_info["attached_volumes"]))
(
"VM image",
self.get_vm_image(
vm["ID"],
vm["Image Name"],
vm["Image ID"],
vm_info["attached_volumes"],
),
)
)
output.append(("created at", vm_info["created_at"]))
output.append(("elapsed time", elapsed))
Expand Down

0 comments on commit b73e539

Please sign in to comment.