Skip to content

Commit cb9ecd5

Browse files
author
Elias Nygren
committed
fix import bugs
1 parent 9885668 commit cb9ecd5

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

upcloud_api/cloud_manager/storage_mixin.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ def attach_storage(self, server_uuid, storage_uuid, storage_type, address):
6767
if(address): body["storage_device"]["address"] = address
6868

6969
res = self.post_request("/server/" + server_uuid + "/storage/attach", body)
70-
print(res)
7170
return Storage._create_storage_objs( res["server"]["storage_devices"], cloud_manager = self )
7271

7372
def detach_storage(self, server_uuid, address):
@@ -76,5 +75,4 @@ def detach_storage(self, server_uuid, address):
7675
"""
7776
body = { "storage_device": { "address": address } }
7877
res = self.post_request("/server/" + server_uuid + "/storage/detach", body)
79-
print(res)
8078
return Storage._create_storage_objs( res["server"]["storage_devices"], cloud_manager = self )

upcloud_api/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
standard_library.install_aliases()
99

1010
from upcloud_api.base import BaseAPI
11-
from upcloud import Storage, IP_address
11+
from upcloud_api import Storage, IP_address
1212

1313
from time import sleep
1414

0 commit comments

Comments
 (0)