]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/restful: Fix deep-scrub typo 25041/head
authorBoris Ranto <branto@redhat.com>
Tue, 30 Oct 2018 20:42:41 +0000 (21:42 +0100)
committerNathan Cutler <ncutler@suse.com>
Sun, 11 Nov 2018 10:21:03 +0000 (11:21 +0100)
There is a typo in implemented commands for OSD. It reads deep_scrub
instead of deep-scrub which is the true valid command.

Fixes: http://tracker.ceph.com/issues/36720
Signed-off-by: Boris Ranto <branto@redhat.com>
(cherry picked from commit 0ddc6ab2ca43d53cf3e7c3469a72436be5382501)

src/pybind/mgr/restful/common.py

index 83e32fb60a0c6dc48feeb531ef366ca25bb27e1e..847156780aa0ea5ec2b37807f647b081be071fc9 100644 (file)
@@ -6,7 +6,7 @@ OSD_FLAGS = [
 
 # Implemented osd commands
 OSD_IMPLEMENTED_COMMANDS = [
-    'scrub', 'deep_scrub', 'repair'
+    'scrub', 'deep-scrub', 'repair'
 ]
 
 # Valid values for the 'var' argument to 'ceph osd pool set'