From fd2a1b5c647b0f79d7efc1413e8756d2ec4ae22b Mon Sep 17 00:00:00 2001 From: Alice Date: Mon, 16 Jan 2017 00:38:27 +0000 Subject: [PATCH] Only query enabled gateways --- lambdainst/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lambdainst/core.py b/lambdainst/core.py index 1865a07..37db8ce 100644 --- a/lambdainst/core.py +++ b/lambdainst/core.py @@ -79,7 +79,7 @@ def current_active_sessions(): @APICache(initial=lambda: []) def get_locations(): - gateways = core_api.get('/gateways/') + gateways = core_api.get('/gateways/', enabled=True) locations = {} for gw in gateways.list_iter():