Kaydet (Commit) 9412e21f authored tarafından Jesper L. Nielsen's avatar Jesper L. Nielsen Kaydeden (comit) Joffrey F

Network model functions 'connect' and 'disconnect' did not accept or passthrough keyword arguments.

Signed-off-by: 's avatarJesper L. Nielsen <lyager@gmail.com>
üst bd84bebf
......@@ -25,7 +25,7 @@ class Network(Model):
(self.attrs.get('Containers') or {}).keys()
]
def connect(self, container):
def connect(self, container, *args, **kwargs):
"""
Connect a container to this network.
......@@ -52,9 +52,12 @@ class Network(Model):
"""
if isinstance(container, Container):
container = container.id
return self.client.api.connect_container_to_network(container, self.id)
return self.client.api.connect_container_to_network(container,
self.id,
*args,
**kwargs)
def disconnect(self, container):
def disconnect(self, container, *args, **kwargs):
"""
Disconnect a container from this network.
......@@ -72,7 +75,9 @@ class Network(Model):
if isinstance(container, Container):
container = container.id
return self.client.api.disconnect_container_from_network(container,
self.id)
self.id,
*args,
**kwargs)
def remove(self):
"""
......
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