diff options
author | Joffrey F <joffrey@docker.com> | 2016-12-08 13:08:05 -0800 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2016-12-08 14:50:05 -0800 |
commit | 48c5cd82fc91b874fb1502149a58f5f72a026a91 (patch) | |
tree | bd7f90ff62c167d08cbfc9eb337274a1b1997524 /tests/helpers.py | |
parent | 3fb48d111bd3c4e1a6a490fe73f76e6021847a5d (diff) | |
download | docker-py-48c5cd82fc91b874fb1502149a58f5f72a026a91.tar.gz |
Prevent Swarm address conflictsjenkinsfile
Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'tests/helpers.py')
-rw-r--r-- | tests/helpers.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/helpers.py b/tests/helpers.py index 53cf57a..1e42363 100644 --- a/tests/helpers.py +++ b/tests/helpers.py @@ -74,3 +74,7 @@ def force_leave_swarm(client): continue else: return + + +def swarm_listen_addr(): + return '0.0.0.0:{0}'.format(random.randrange(10000, 25000)) |