From bddcdcaca24cf18a81d9182477dfc0690f4e1a27 Mon Sep 17 00:00:00 2001 From: thatmattlove Date: Mon, 6 Dec 2021 17:46:48 -0700 Subject: [PATCH] run configuration init at CLI prior to ui build --- hyperglass/cli/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hyperglass/cli/main.py b/hyperglass/cli/main.py index 818a3b7..4c86e58 100644 --- a/hyperglass/cli/main.py +++ b/hyperglass/cli/main.py @@ -43,7 +43,7 @@ def _version( def _start(build: bool = False, workers: t.Optional[int] = None) -> None: """Start hyperglass""" # Project - from hyperglass.main import run + from hyperglass.main import run, init_user_config # Local from .util import build_ui @@ -53,6 +53,7 @@ def _start(build: bool = False, workers: t.Optional[int] = None) -> None: kwargs["workers"] = workers try: + init_user_config() if build: build_complete = build_ui(timeout=180) if build_complete: