rest-api: key missing for per "rx" and "rwx"

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>
This commit is contained in:
Ailing 2014-05-28 12:37:48 -07:00
parent f7f7659b7e
commit 0b5a674107

View File

@ -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'])