From bc9f34eacc3fccdad1b700a3b63a3efc80b818fb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stephan=20M=C3=BCller?= Date: Tue, 31 Jul 2018 12:32:10 +0200 Subject: [PATCH] mgr/dashboard: Amend pool backend tasks MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Amends pool tasks in order to get the right results back into the UI and also to have tasks with the same attributes. Fixes: https://tracker.ceph.com/issues/36355 Signed-off-by: Stephan Müller --- src/pybind/mgr/dashboard/controllers/pool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/dashboard/controllers/pool.py b/src/pybind/mgr/dashboard/controllers/pool.py index e09621b5482..ade88a6e5da 100644 --- a/src/pybind/mgr/dashboard/controllers/pool.py +++ b/src/pybind/mgr/dashboard/controllers/pool.py @@ -76,11 +76,11 @@ class Pool(RESTController): return CephService.send_command('mon', 'osd pool delete', pool=pool_name, pool2=pool_name, sure='--yes-i-really-really-mean-it') - @pool_task('set', ['{pool_name}']) + @pool_task('edit', ['{pool_name}']) def set(self, pool_name, flags=None, application_metadata=None, **kwargs): self._set_pool_values(pool_name, application_metadata, flags, True, kwargs) - @pool_task('create', ['{pool}']) + @pool_task('create', {'pool_name': '{pool}'}) @handle_send_command_error('pool') def create(self, pool, pg_num, pool_type, erasure_code_profile=None, flags=None, application_metadata=None, rule_name=None, **kwargs): -- 2.39.5