From 9c64a6c62f413e1dba1e1d69979258d69fccda7b Mon Sep 17 00:00:00 2001
From: Jake Taylor <jake@elixxir.io>
Date: Fri, 15 Oct 2021 11:36:22 -0500
Subject: [PATCH] fix checking network settings on startup

---
 wrapper.py | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/wrapper.py b/wrapper.py
index c9024b4..2be0104 100755
--- a/wrapper.py
+++ b/wrapper.py
@@ -795,8 +795,15 @@ class Targets:
 
 
 def main():
-    # Command line arguments
     args = get_args()
+
+    # Ensure network settings are properly configured before allowing a start
+    if not check_networking():
+        log.error("Unacceptable network settings, refusing to start. "
+                  "Run the suggested commands and restart the wrapper service.")
+        raise Exception
+
+    # Command line arguments
     log.info("Running with configuration: {}".format(args))
 
     binary_path = args["binary_path"]
@@ -827,11 +834,6 @@ def main():
     disable_consensus = args["disable_consensus"]
     disable_cloudwatch = args["disable_cloudwatch"]
 
-    # Ensure network settings are properly configured before allowing a start
-    if not check_networking():
-        raise Exception("Unacceptable network settings, refusing to start. "
-                        "Run the suggested commands and restart the wrapper service.")
-
     # The valid "install" paths we can write to, with their local paths for
     # this machine
     valid_paths = {
-- 
GitLab