mise a jour

This commit is contained in:
Abdel Kader Chabi Sika Boni 2021-01-02 14:45:00 +01:00
parent 6dcd4bc0aa
commit 36f98e2831

View file

@ -9,7 +9,7 @@ BOOTSTRAP_SERVER_ADDRESS = '10.10.10.10:5555'
def retrieve_config():
my_json_config = {"verdict":"oops"}
my_ip = str(subprocess.check_output("sleep $((6 + RANDOM % 10)) && echo $MY_IP", shell=True)).rstrip()
my_ip = str(subprocess.check_output("echo $MY_IP", shell=True)).rstrip()
print("MY_IP : %s"%(my_ip))
while my_json_config["verdict"] != "yes":
try: