Commit 9a3f4ffc authored by Giorgos Verigakis's avatar Giorgos Verigakis
Browse files

Use _post instead of _cmd

parent f108622a
......@@ -210,7 +210,7 @@ class Client(object):
"""Get a VNC connection to the console of a server specified by id"""
path = '/servers/%d/action' % server_id
body = json.dumps({'console': {'type': 'vnc'}})
reply = self._cmd('POST', path, body, 200)
reply = self._post(path, body, 200)
return reply['console']
def set_firewall_profile(self, server_id, profile):
......@@ -222,7 +222,7 @@ class Client(object):
"""
path = '/servers/%d/action' % server_id
body = json.dumps({'firewallProfile': {'profile': profile}})
self._cmd('POST', path, body, 202)
self._post(path, body, 202)
def list_server_addresses(self, server_id, network=None):
path = '/servers/%d/ips' % server_id
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment