From 551acd27aac8047dc1feec2315ea359aeec4b4b9 Mon Sep 17 00:00:00 2001 From: checktheroads Date: Tue, 3 Sep 2019 00:42:22 -0700 Subject: [PATCH] code cleanup & fix formatting --- hyperglass/configuration/__init__.py | 2 ++ hyperglass/render/templates/form.html.j2 | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hyperglass/configuration/__init__.py b/hyperglass/configuration/__init__.py index 9274a89..e199069 100644 --- a/hyperglass/configuration/__init__.py +++ b/hyperglass/configuration/__init__.py @@ -26,10 +26,12 @@ try: except FileNotFoundError as no_config_error: user_config = None logger.error(f"{no_config_error} - Default configuration will be used") + # Import device commands file try: with open(working_dir.joinpath("commands.yaml")) as commands_yaml: user_commands = yaml.safe_load(commands_yaml) + logger.info(f"Found commands: {user_commands}") except FileNotFoundError: user_commands = None logger.info( diff --git a/hyperglass/render/templates/form.html.j2 b/hyperglass/render/templates/form.html.j2 index be0fcca..79c7148 100644 --- a/hyperglass/render/templates/form.html.j2 +++ b/hyperglass/render/templates/form.html.j2 @@ -46,7 +46,7 @@ {% endif %} {% if features.traceroute.enable %} - {% endif %}