Actions
Bug #65554
openmgr/nfs: nfs module commands do not accept json-pretty format
% Done:
0%
Source:
Tags:
backport_processed
Backport:
squid, reef
Regression:
No
Severity:
3 - minor
Reviewed:
Description
[ceph: root@vm-00 /]# ceph nfs cluster info { "foo": { "backend": [ { "hostname": "vm-02", "ip": "192.168.122.148", "port": 2049 } ], "virtual_ip": null } } [ceph: root@vm-00 /]# [ceph: root@vm-00 /]# ceph nfs cluster info --format yaml foo: backend: - {hostname: vm-02, ip: 192.168.122.148, port: 2049} virtual_ip: null [ceph: root@vm-00 /]# [ceph: root@vm-00 /]# ceph nfs cluster info --format json { "foo": { "backend": [ { "hostname": "vm-02", "ip": "192.168.122.148", "port": 2049 } ], "virtual_ip": null } } [ceph: root@vm-00 /]# [ceph: root@vm-00 /]# ceph nfs cluster info --format json-pretty Error EINVAL: Unknown format name: json-pretty
we're basically already printing json-pretty for both the default and json formats for this command, so there's no reason we can't get json-pretty to work.
Actions