diff --git a/deployability/modules/allocation/vagrant/provider.py b/deployability/modules/allocation/vagrant/provider.py index d08f5f9d3b..38f64678e1 100644 --- a/deployability/modules/allocation/vagrant/provider.py +++ b/deployability/modules/allocation/vagrant/provider.py @@ -6,6 +6,7 @@ import platform, json import subprocess import boto3 +import random from jinja2 import Environment, FileSystemLoader from pathlib import Path @@ -244,8 +245,8 @@ def check_ip(ip): if response != 0: return ip - for i in range(2, 254): - ip = f"192.168.57.{i}" + for i in range(254): + ip = f"192.168.57.{random.randint(2, 253)}" if check_ip(ip): return ip