Actions
Bug #36329
closedformat=json reports a different exit code than plain format
Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
It is tremendously confusing to see that plain and json output report a different return code, see the following example:
[root@osd0 ~]# ceph-volume lvm list /dev/sdb ; echo $? No valid Ceph devices found 1 [root@osd0 ~]# ceph-volume lvm list /dev/sdb --format=json ; echo $? {} 0
Actions