Fix bug that disallowed ServerRegion from being used in edit_server.
This commit is contained in:
parent
8384edb061
commit
bca6b2a133
@ -1965,6 +1965,9 @@ class Client:
|
|||||||
|
|
||||||
fields['owner_id'] = fields['owner'].id
|
fields['owner_id'] = fields['owner'].id
|
||||||
|
|
||||||
|
if 'region' in fields:
|
||||||
|
fields['region'] = str(fields['region'])
|
||||||
|
|
||||||
yield from self.http.edit_server(server.id, **fields)
|
yield from self.http.edit_server(server.id, **fields)
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
|
Loading…
x
Reference in New Issue
Block a user