Skip to content
Snippets Groups Projects
Commit 9c64a6c6 authored by Jake Taylor's avatar Jake Taylor
Browse files

fix checking network settings on startup

parent d3098370
No related branches found
No related tags found
1 merge request!10Release
......@@ -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 = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment