Compare commits

..

No commits in common. "0072a077543785788fafdd44ba027c2030985a3f" and "b1c89e62e3ab8e41f2caa2291c756844fbdf5d5a" have entirely different histories.

View File

@ -46,35 +46,6 @@ class ServerData:
return os_id return os_id
def create_post_data(self): def create_post_data(self):
ram, disk = self.get_ram_and_disk()
post_data = {
"server_type": 1,
"os_id": self.get_os(),
"provider_id": 10,
"location_id": 15,
"ssh_port": 22,
"ram": ram >> 10, # convert to GB
"ram_as_mb": ram, # in MB
"disk": disk, # in GB
"disk_as_gb": disk, # in GB
"cpu": self.get_cpu_count(),
"bandwidth": self.get_bandwidth(),
"was_promo": 1,
"active": 1,
"show_public": 0,
"owned_since": "2022-01-01",
"ram_type": "GB",
"disk_type": "GB",
"currency": "USD",
"price": 4,
"payment_term": 1,
"hostname": self.hostname,
"next_due_date": "2022-02-01",
"ip1": self.public_ip,
}
logging.info("Post data created")
return post_data
class ServerManager: class ServerManager:
def __init__(self, host, api_key): def __init__(self, host, api_key):