mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-02-12 13:01:51 +00:00
Black Linting
This commit is contained in:
parent
35165a38c5
commit
d16858e4d5
1 changed files with 2 additions and 0 deletions
|
@ -10,11 +10,13 @@ from proxstar.proxmox import connect_proxmox, get_free_vmid, get_node_least_mem,
|
|||
from proxstar.starrs import get_ip_for_mac
|
||||
from proxstar.util import lazy_property, default_repr
|
||||
|
||||
|
||||
def check_in_gb(size):
|
||||
if size[-1] == 'M':
|
||||
size = f'{int(size.rstrip("M")) / 1000}G'
|
||||
return size
|
||||
|
||||
|
||||
@default_repr
|
||||
class VM:
|
||||
def __init__(self, vmid):
|
||||
|
|
Loading…
Reference in a new issue