From 7076feb727dac4019163442615f9a0b966ff8ca2 Mon Sep 17 00:00:00 2001 From: checktheroads Date: Sun, 16 Jun 2019 23:34:37 -0700 Subject: [PATCH] switched to hostnamed-based device identification, removed name key --- hyperglass/hyperglass.py | 2 +- hyperglass/static/js/hyperglass.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hyperglass/hyperglass.py b/hyperglass/hyperglass.py index 4bf71ed..778c1f8 100644 --- a/hyperglass/hyperglass.py +++ b/hyperglass/hyperglass.py @@ -172,7 +172,7 @@ def hyperglass_main(): logger.debug("No input specified") return Response(config["messages"]["no_input"], codes["danger"]) # Return error if no location is selected - if lg_data["location"] not in configuration.locations(): + if lg_data["location"] not in configuration.hostnames(): logger.debug("No selection specified") return Response(config["messages"]["no_location"], codes["danger"]) # Return error if no query type is selected diff --git a/hyperglass/static/js/hyperglass.js b/hyperglass/static/js/hyperglass.js index e3f85c9..f1d9cfe 100644 --- a/hyperglass/static/js/hyperglass.js +++ b/hyperglass/static/js/hyperglass.js @@ -122,7 +122,7 @@ $('#network').on('change', () => { function updateRouters(locations) { locations.forEach(function(r) { - $('#location').append($("