summaryrefslogtreecommitdiff
path: root/service/pixelated/resources/features_resource.py
diff options
context:
space:
mode:
authorGiovane <giovaneliberato@gmail.com>2015-09-14 16:51:37 -0300
committerGiovane <giovaneliberato@gmail.com>2015-09-14 16:51:37 -0300
commitcedaa0b72507e43de4a3f357957ea4c12b1563ee (patch)
tree28a2d44db2b78bd8d74fea86f4da29ff4294166b /service/pixelated/resources/features_resource.py
parent394b39003c71650327d9816229fd16fcef80669c (diff)
#442 Correcting env variable name and initialize dispatcher_features before usage.
Diffstat (limited to 'service/pixelated/resources/features_resource.py')
-rw-r--r--service/pixelated/resources/features_resource.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/service/pixelated/resources/features_resource.py b/service/pixelated/resources/features_resource.py
index e11653a9..1c19338e 100644
--- a/service/pixelated/resources/features_resource.py
+++ b/service/pixelated/resources/features_resource.py
@@ -24,9 +24,12 @@ class FeaturesResource(Resource):
isLeaf = True
def render_GET(self, request):
- dispatcher_features = {'logout': os.environ.get('DISPATCHER_LOGOUT_URL')}
+ dispatcher_features = {}
- if os.environ.get('FEEDBACK_ENABLE') is None:
+ if os.environ.get('DISPATCHER_LOGOUT_URL'):
+ dispatcher_features['logout'] = os.environ.get('DISPATCHER_LOGOUT_URL')
+
+ if os.environ.get('FEEDBACK_ENABLED') is None:
self.DISABLED_FEATURES.append('feedback')
return respond_json(