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>
cout << key << std::endl;
} else {
cerr << "entity " << ename << " not found" << std::endl;
+ exit(1);
}
}
r = bl.write_file(fn.c_str(), 0600);
if (r < 0) {
cerr << "could not write " << fn << std::endl;
+ exit(1);
}
//cout << "wrote " << bl.length() << " bytes to " << fn << std::endl;
}