Project

General

Profile

Actions

Bug #65554

open

mgr/nfs: nfs module commands do not accept json-pretty format

Added by Adam King 14 days ago. Updated 7 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
squid, reef
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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 #1

Updated by Adam King 7 days ago

  • Pull request ID set to 56963
Actions

Also available in: Atom PDF