]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr/osd_perf_query: fix regression
authorMykola Golub <mgolub@suse.com>
Fri, 14 Dec 2018 15:20:26 +0000 (15:20 +0000)
committerMykola Golub <mgolub@suse.com>
Fri, 14 Dec 2018 15:20:26 +0000 (15:20 +0000)
(introduced when adding ALL_SUBKEYS_QUERY)

Signed-off-by: Mykola Golub <mgolub@suse.com>
src/pybind/mgr/osd_perf_query/module.py

index 12660139dacd6c0488f793dd2d31dae34622ffb9..2d4fa6b5ab88cba893882ad1a85770fbe57a0386 100644 (file)
@@ -87,7 +87,7 @@ class OSDPerfQuery(MgrModule):
         if cmd['prefix'] == "osd perf query add":
             if cmd['query'] == 'rbd_image_id':
                 query = self.RBD_IMAGE_ID_QUERY
-            elif cmd['query'] == 'rbd_image_id':
+            elif cmd['query'] == 'client_id':
                 query = self.CLIENT_ID_QUERY
             else:
                 query = self.ALL_SUBKEYS_QUERY