summaryrefslogtreecommitdiff
path: root/tests/integration/models_nodes_test.py
diff options
context:
space:
mode:
authorJoffrey F <joffrey@docker.com>2017-01-25 15:28:43 -0800
committerJoffrey F <joffrey@docker.com>2017-01-25 15:28:43 -0800
commit3e5bb7b0e6ae6286451f8af8cc717bd995709c13 (patch)
treea7e081b153f0d0dfd80bedcb235bd8da7a0c0835 /tests/integration/models_nodes_test.py
parent39deace7c62e3ebfd1a69beb9ac78e6aa7038b57 (diff)
downloaddocker-py-1359-swarm-init.tar.gz
Fix Swarm model init to correctly pass arguments through to init_swarm1359-swarm-init
Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'tests/integration/models_nodes_test.py')
-rw-r--r--tests/integration/models_nodes_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/integration/models_nodes_test.py b/tests/integration/models_nodes_test.py
index 9fd1659..b3aba80 100644
--- a/tests/integration/models_nodes_test.py
+++ b/tests/integration/models_nodes_test.py
@@ -14,7 +14,7 @@ class NodesTest(unittest.TestCase):
def test_list_get_update(self):
client = docker.from_env()
- client.swarm.init(listen_addr=helpers.swarm_listen_addr())
+ client.swarm.init('eth0', listen_addr=helpers.swarm_listen_addr())
nodes = client.nodes.list()
assert len(nodes) == 1
assert nodes[0].attrs['Spec']['Role'] == 'manager'