Project

General

Profile

Bug #40801

ceph orchestrator cli alleges support for json-pretty, xml, xml-pretty formats

Added by Tim Serong about 1 month ago. Updated about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
orchestrator
Target version:
-
Start date:
07/17/2019
Due date:
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

The _list_devices() and _list_services() methods of the orchestrator CLI both specify "name=format,type=CephChoices,strings=json|plain,req=false" for the format parameter, so it should only accept json or plain as formats. However, if I run `ceph orchestrator service ls --format=some-unsupported-thing`, I get:

ceph: error: argument -f/--format: invalid choice: 'json_pretty' (choose from 'json', 'json-pretty', 'xml', 'xml-pretty', 'plain')

Given those methods only support json and plain, I'd not expect to see json-pretty, xml or xml-pretty as available options.

History

#1 Updated by Sebastian Wagner about 1 month ago

might be an idea to just remove the format parameter specification and just don't document it?

Also available in: Atom PDF