summaryrefslogtreecommitdiff
path: root/tests/integration/models_nodes_test.py
diff options
context:
space:
mode:
authorJoffrey F <joffrey@docker.com>2017-08-31 12:22:59 -0700
committerJoffrey F <joffrey@docker.com>2017-08-31 12:22:59 -0700
commit43cd5336a5458432230f86d605b4f8a14121c6bf (patch)
tree2bd8a87bf3af18a43c24ba3d867e5090f33e034b /tests/integration/models_nodes_test.py
parent89195146adde47181156b0c204c72b790c69cf85 (diff)
downloaddocker-py-fix-advertise-addr.tar.gz
Use unambiguous advertise-addr when initializing a swarmfix-advertise-addr
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 5823e6b..3c8d48a 100644
--- a/tests/integration/models_nodes_test.py
+++ b/tests/integration/models_nodes_test.py
@@ -15,7 +15,7 @@ class NodesTest(unittest.TestCase):
def test_list_get_update(self):
client = docker.from_env(version=TEST_API_VERSION)
- client.swarm.init('eth0', listen_addr=helpers.swarm_listen_addr())
+ client.swarm.init('127.0.0.1', listen_addr=helpers.swarm_listen_addr())
nodes = client.nodes.list()
assert len(nodes) == 1
assert nodes[0].attrs['Spec']['Role'] == 'manager'