fixed the indentation and defination for empty function
All checks were successful
buildbot/multibuild_parent Build done.
buildbot/travis_bionic Build done.

This commit is contained in:
Shailaja Kumari 2024-06-07 15:46:42 +05:30
parent b1c89e62e3
commit f1d1387dd6
Signed by: shailaja
GPG Key ID: 2B9455CAFBC4D75A

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