From: Ricardo Dias Date: Tue, 24 Apr 2018 12:32:03 +0000 (+0100) Subject: mgr/dashboard: pool: fix python3 dict_keys error X-Git-Tag: v13.1.0~118^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f866072f74f96e1c54845c66a7c85203a9e89c02;p=ceph.git mgr/dashboard: pool: fix python3 dict_keys error Signed-off-by: Ricardo Dias --- diff --git a/src/pybind/mgr/dashboard/controllers/pool.py b/src/pybind/mgr/dashboard/controllers/pool.py index c31eb27302a5..8288165bc499 100644 --- a/src/pybind/mgr/dashboard/controllers/pool.py +++ b/src/pybind/mgr/dashboard/controllers/pool.py @@ -28,7 +28,7 @@ class Pool(RESTController): elif attr == 'crush_rule': res[attr] = crush_rules[pool[attr]] elif attr == 'application_metadata': - res[attr] = pool[attr].keys() + res[attr] = list(pool[attr].keys()) else: res[attr] = pool[attr]