Skip to content

Commit fea8e70

Browse files
committed
[LIB-965] imports corrects;
1 parent fa2bbc3 commit fea8e70

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

syncano/models/hosting.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
# -*- coding: utf-8 -*-
22

3-
from syncano import logger
4-
53
from . import fields
6-
from .archetypes import Model
4+
from .base import Model
75
from .instances import Instance
86

97

@@ -18,7 +16,6 @@ class Hosting(Model):
1816
description = fields.StringField(read_only=False, required=False)
1917
domains = fields.ListField(default=[])
2018

21-
id = fields.IntegerField(read_only=True)
2219
links = fields.LinksField()
2320
created_at = fields.DateTimeField(read_only=True, required=False)
2421
updated_at = fields.DateTimeField(read_only=True, required=False)
@@ -50,7 +47,6 @@ def upload_file(self, path, file):
5047
response = connection.session.post('{}{}'.format(connection.host, files_path), headers=headers,
5148
data=data, files=[('file', file)])
5249
if response.status_code != 201:
53-
logger.error(response.text)
5450
return
5551
return HostingFile(**response.json())
5652

@@ -79,7 +75,6 @@ def update_file(self, path, file):
7975
response = connection.session.patch('{}{}'.format(connection.host, hosting_file.links.self), headers=headers,
8076
files=[('file', file)])
8177
if response.status_code != 200:
82-
logger.error(response.text)
8378
return
8479
return HostingFile(**response.json())
8580

0 commit comments

Comments
 (0)