fixed the indentation and defination for empty function
This commit is contained in:
parent
b1c89e62e3
commit
f1d1387dd6
18
agent.py
18
agent.py
|
@ -46,6 +46,24 @@ class ServerData:
|
|||
return os_id
|
||||
|
||||
def create_post_data(self):
|
||||
ram, disk = self.get_ram_and_disk()
|
||||
cpu_count = self.get_cpu_count()
|
||||
bandwidth = self.get_bandwidth()
|
||||
os_id = self.get_os()
|
||||
|
||||
post_data = {
|
||||
'hostname': self.hostname,
|
||||
'public_ip': self.public_ip,
|
||||
'ram': ram,
|
||||
'disk': disk,
|
||||
'cpu_count': cpu_count,
|
||||
'bandwidth': bandwidth,
|
||||
'os_id': os_id
|
||||
}
|
||||
|
||||
logging.info(f"Post Data: {post_data}")
|
||||
return post_data
|
||||
|
||||
|
||||
class ServerManager:
|
||||
def __init__(self, host, api_key):
|
||||
|
|
Loading…
Reference in New Issue
Block a user