summaryrefslogtreecommitdiff
path: root/tests/integration/models_swarm_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_swarm_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_swarm_test.py')
-rw-r--r--tests/integration/models_swarm_test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/integration/models_swarm_test.py b/tests/integration/models_swarm_test.py
index 4f177f1..2808b45 100644
--- a/tests/integration/models_swarm_test.py
+++ b/tests/integration/models_swarm_test.py
@@ -15,7 +15,8 @@ class SwarmTest(unittest.TestCase):
def test_init_update_leave(self):
client = docker.from_env()
client.swarm.init(
- snapshot_interval=5000, listen_addr=helpers.swarm_listen_addr()
+ advertise_addr='eth0', snapshot_interval=5000,
+ listen_addr=helpers.swarm_listen_addr()
)
assert client.swarm.attrs['Spec']['Raft']['SnapshotInterval'] == 5000
client.swarm.update(snapshot_interval=10000)