fixed the indentation and defination for empty function #2

Merged
PeterSurda merged 1 commits from shailaja/idlers-agent:indent_fix into main 2024-06-07 13:18:29 +00:00

View File

@ -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):