]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rest-api: key missing for per "rx" and "rwx" 1880/head
authorAiling <ailzhang@users.noreply.github.com>
Wed, 28 May 2014 19:37:48 +0000 (12:37 -0700)
committerAiling <ailzhang@users.noreply.github.com>
Wed, 28 May 2014 19:37:48 +0000 (12:37 -0700)
commit 85a1cf31e6 and db266a3fb2 introduce new per "rx" and "rwx", but key missing for per "rx" and "rwx" in permmap

Signed-off-by: Ailing Zhang <ailzhang@cisco.com>
src/pybind/ceph_rest_api.py

index 59d1ba28ddefaedfcb97cfdf8ef4869c1e25f77a..77adbe7f9dc88f80cfe121aacca852f7b99f0715 100755 (executable)
@@ -274,7 +274,7 @@ def show_human_help(prefix):
     # XXX There ought to be a better discovery mechanism than an HTML table
     s = '<html><body><table border=1><th>Possible commands:</th><th>Method</th><th>Description</th>'
 
-    permmap = {'r':'GET', 'rw':'PUT'}
+    permmap = {'r':'GET', 'rw':'PUT', 'rx':'GET', 'rwx':'PUT'}
     line = ''
     for cmdsig in sorted(app.ceph_sigdict.itervalues(), cmp=descsort):
         concise = concise_sig(cmdsig['sig'])