From e0098cfdf40a125151cc74c626b6e9de05a59f70 Mon Sep 17 00:00:00 2001 From: shirenn Date: Sat, 10 Jul 2021 23:27:50 +0200 Subject: [PATCH] wait for ips to lauch services --- keepalived.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/keepalived.py b/keepalived.py index 0d81b03..aff2e66 100755 --- a/keepalived.py +++ b/keepalived.py @@ -4,6 +4,7 @@ import json import os import subprocess import sys +import time from enum import Enum path = os.path.dirname(os.path.abspath(__file__)) @@ -38,6 +39,7 @@ if __name__ == '__main__': parser.add_argument('STATE', type=State, choices=list(State)) parser.add_argument('PRIORITY', type=int) args = parser.parse_args() + time.sleep(2) with open(os.path.join(path, "keepalived.json")) as config_file: config = json.load(config_file)