small fix

This commit is contained in:
nlitkowski 2021-11-27 14:00:32 +01:00
parent 3940a3083b
commit 517b7e7a0e

View File

@ -30,6 +30,7 @@ def get_ssh_key(client: Client) -> BoundSSHKey:
name=SSH_KEY_NAME, public_key=ssh_key_pub) name=SSH_KEY_NAME, public_key=ssh_key_pub)
print( print(
f"Klucz SSH: {ssh_key.data_model.name}, {ssh_key.data_model.public_key}") f"Klucz SSH: {ssh_key.data_model.name}, {ssh_key.data_model.public_key}")
return ssh_key
def get_vnet(client: Client) -> BoundNetwork: def get_vnet(client: Client) -> BoundNetwork:
@ -45,6 +46,7 @@ def get_vnet(client: Client) -> BoundNetwork:
) )
print( print(
f"Sieć wirtualna: {vnet.data_model.name} ({vnet.data_model.ip_range})") f"Sieć wirtualna: {vnet.data_model.name} ({vnet.data_model.ip_range})")
return vnet
def create_db_server(client: Client, vnet: BoundNetwork, ssh_key: BoundSSHKey) -> BoundServer: def create_db_server(client: Client, vnet: BoundNetwork, ssh_key: BoundSSHKey) -> BoundServer: