switched to hostnamed-based device identification, removed name key

This commit is contained in:
checktheroads 2019-06-16 23:34:37 -07:00
parent b23b6e65c5
commit 7076feb727
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -122,7 +122,7 @@ $('#network').on('change', () => {
function updateRouters(locations) {
locations.forEach(function(r) {
$('#location').append($("<option>").attr('value', r.location).text(r.display_name))
$('#location').append($("<option>").attr('value', r.hostname).text(r.display_name))
})
}