]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-authtool: exit(1) when printing a non-existing key 4358/head
authorGerhard Muntingh <gerhard@warpnet.nl>
Tue, 14 Apr 2015 12:02:15 +0000 (14:02 +0200)
committerGerhard Muntingh <gerhard@qux.nl>
Thu, 16 Apr 2015 14:42:13 +0000 (16:42 +0200)
commit16a3fbd56b3dcfcbdd4190c07bf8634ebc5a5f78
tree711e5b49254f4dc04ce3c0896489ec3542ef4361
parente6e4142e9925117653a1b3f792333afcca41f9ee
ceph-authtool: exit(1) when printing a non-existing key

When printing a non-existing key, ceph-authtool exits with a success
value:

[root@ip-172-31-3-178 ~]# ceph-authtool /etc/ceph/ceph.mon.keyring -p -n
client.doesntexist ; echo $?
entity client.doesntexist not found
0

Expected result: 1

Signed-off-by: Gerhard Muntingh <gerhard@qux.nl>
src/tools/ceph_authtool.cc