From 1ac6a07909aec33d38f9fa219caadcc54aacccb9 Mon Sep 17 00:00:00 2001 From: Volker Theile Date: Mon, 26 Mar 2018 15:13:48 +0200 Subject: [PATCH] mgr/dashboard: Remove useless code Signed-off-by: Volker Theile --- src/pybind/mgr/dashboard/controllers/rgw.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/pybind/mgr/dashboard/controllers/rgw.py b/src/pybind/mgr/dashboard/controllers/rgw.py index 4f8e169e917ed..6d31fd35769ae 100644 --- a/src/pybind/mgr/dashboard/controllers/rgw.py +++ b/src/pybind/mgr/dashboard/controllers/rgw.py @@ -23,15 +23,6 @@ class RgwDaemon(RESTController): for hostname, server in CephService.get_service_map('rgw').items(): for service in server['services']: metadata = service['metadata'] - status = service['status'] - if 'json' in status: - try: - status = json.loads(status['json']) - except ValueError: - logger.warning("%s had invalid status json", service['id']) - status = {} - else: - logger.warning('%s has no key "json" in status', service['id']) # extract per-daemon service data and health daemon = { -- 2.47.3