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 17, 2024
1 parent 1292cb3 commit 13ca9e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fedcloud_vm_monitoring/site_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,10 @@ def show_quotas(self):
round(v["In Use"]/v["Limit"]*100)
))
# checks on quota
if quota_info.get("ram (GB)").get("Limit", 1) / quota_info.get("cores").get("Limit", 1) < self.min_ram_cpu_ratio:
if (
quota_info.get("ram (GB)").get("Limit", 1) / quota_info.get("cores").get("Limit", 1)
< self.min_ram_cpu_ratio:
):
click.secho(
f"[-] WARNING: Less than {self.min_ram_cpu_ratio} GB RAM per available CPU",
fg="yellow",
Expand Down

0 comments on commit 13ca9e1

Please sign in to comment.