[open-event-legacy/deploy] Fix 500 error on admin and reports pages
- From: Tom Tryfonidis <tomtryf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [open-event-legacy/deploy] Fix 500 error on admin and reports pages
- Date: Sat, 6 Apr 2019 18:11:30 +0000 (UTC)
commit e661247e9a8ef51e65883380ced68507a67fffde
Author: Tom Tryfonidis <tomtryf gmail com>
Date: Sat Apr 6 21:10:21 2019 +0300
Fix 500 error on admin and reports pages
app/views/super_admin/reports.py | 1 +
app/views/super_admin/super_admin.py | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/app/views/super_admin/reports.py b/app/views/super_admin/reports.py
index ad98c2ae..01449910 100644
--- a/app/views/super_admin/reports.py
+++ b/app/views/super_admin/reports.py
@@ -22,6 +22,7 @@ def index_view():
on_heroku = HerokuApi.is_on_heroku()
on_kubernetes = KubernetesApi.is_on_kubernetes()
+ on_kubernetes = None
pods_info = None
logplex_url = None
diff --git a/app/views/super_admin/super_admin.py b/app/views/super_admin/super_admin.py
index 3f43ee99..dded8d79 100644
--- a/app/views/super_admin/super_admin.py
+++ b/app/views/super_admin/super_admin.py
@@ -48,9 +48,9 @@ def index_view():
on_heroku = False
if KubernetesApi.is_on_kubernetes():
- on_kubernetes = True
+ on_kubernetes = False
kubernetes_api = KubernetesApi()
- pods_info = kubernetes_api.get_pods()['items']
+ #pods_info = kubernetes_api.get_pods()['items']
repository = os.getenv('REPOSITORY', 'https://github.com/fossasia/open-event-orga-server.git')
branch = os.getenv('BRANCH', 'development')
commit_number = os.getenv('COMMIT_HASH', 'null')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]