]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/MonCommand: populate 'availability' field for compat
authorSage Weil <sage@redhat.com>
Mon, 10 Dec 2018 12:54:15 +0000 (06:54 -0600)
committerSage Weil <sage@redhat.com>
Mon, 10 Dec 2018 12:54:15 +0000 (06:54 -0600)
commit66f5352772893cf457acdf702a53ff961fb7618b
treeab746442c51711c0cc835f92ed4e81e007a5de32
parent241896c66036d1ce7999d8999209e91a804b3279
mon/MonCommand: populate 'availability' field for compat

The CLI will behave if this field is not included in teh JSON, but when you have
a nautilus+ leader mon and a luminous or mimic peon mon they will decode this empty
field and include "avail": "" in the JSON command descriptions, which the CLI does
not like.

Fix by encoding "cli,rest" in this field for the benefit of old mons.

Fixes: http://tracker.ceph.com/issues/37583
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MonCommand.h