diff options
author | Sage Weil <sage@inktank.com> | 2013-07-16 17:21:33 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-07-16 17:21:33 -0700 |
commit | 7e16b72dc3d8aa3b16a17ecbcad9f01d34c1b334 (patch) | |
tree | 2a01065e87125e761075a695424607beecc9f400 | |
parent | f129d17414c2f3194c2344340e411fde6755da25 (diff) | |
download | ceph-7e16b72dc3d8aa3b16a17ecbcad9f01d34c1b334.tar.gz |
mon/AuthMonitor: make 'auth del ...' idempotent
Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r-- | src/mon/AuthMonitor.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mon/AuthMonitor.cc b/src/mon/AuthMonitor.cc index 83b7ac2ce0c..629451b5eac 100644 --- a/src/mon/AuthMonitor.cc +++ b/src/mon/AuthMonitor.cc @@ -897,8 +897,8 @@ bool AuthMonitor::prepare_command(MMonCommand *m) KeyServerData::Incremental auth_inc; auth_inc.name = entity; if (!mon->key_server.contains(auth_inc.name)) { - ss << "couldn't find entry " << entity; - err = -ENOENT; + ss << "entity " << entity << " does not exist"; + err = 0; goto done; } auth_inc.op = KeyServerData::AUTH_INC_DEL; |