Commit 2208858d authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Apply pep8 on clients.cyclades* methods

parent de73876b
......@@ -243,7 +243,9 @@ class CycladesClient(CycladesClientApi):
r = self.networks_post(netid, 'action', json_data=req)
r.release()
def wait_server(self, server_id,
def wait_server(
self,
server_id,
current_status='BUILD',
delay=0.5,
max_wait=128,
......
......@@ -39,7 +39,8 @@ import json
class CycladesClientApi(ComputeClient):
"""GRNet Cyclades REST API Client"""
def servers_get(self,
def servers_get(
self,
server_id='',
command='',
success=200,
......@@ -63,8 +64,12 @@ class CycladesClientApi(ComputeClient):
self.set_param('changes-since', changes_since, changes_since)
return self.get(path, success=success, **kwargs)
def networks_get(self,
network_id='', command='', success=(200, 203), **kwargs):
def networks_get(
self,
network_id='',
command='',
success=(200, 203),
**kwargs):
"""GET base_url/networks[/network_id][/command] request
:param network_id: integer (str or int)
......@@ -80,8 +85,12 @@ class CycladesClientApi(ComputeClient):
path = path4url('networks', network_id, command)
return self.get(path, success=success, **kwargs)
def networks_delete(self,
network_id='', command='', success=204, **kwargs):
def networks_delete(
self,
network_id='',
command='',
success=204,
**kwargs):
"""DEL ETE base_url/networks[/network_id][/command] request
:param network_id: integer (str or int)
......@@ -97,8 +106,13 @@ class CycladesClientApi(ComputeClient):
path = path4url('networks', network_id, command)
return self.delete(path, success=success, **kwargs)
def networks_post(self,
network_id='', command='', json_data=None, success=202, **kwargs):
def networks_post(
self,
network_id='',
command='',
json_data=None,
success=202,
**kwargs):
"""POST base_url/servers[/server_id]/[command] request
:param network_id: integer (str or int)
......@@ -122,8 +136,13 @@ class CycladesClientApi(ComputeClient):
path = path4url('networks', network_id, command)
return self.post(path, data=data, success=success, **kwargs)
def networks_put(self,
network_id='', command='', json_data=None, success=204, **kwargs):
def networks_put(
self,
network_id='',
command='',
json_data=None,
success=204,
**kwargs):
"""PUT base_url/servers[/server_id]/[command] request
:param network_id: integer (str or int)
......
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