From: Sage Weil Date: Wed, 17 Jul 2013 00:21:33 +0000 (-0700) Subject: mon/AuthMonitor: make 'auth del ...' idempotent X-Git-Tag: v0.67-rc1~48 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7e16b72dc3d8aa3b16a17ecbcad9f01d34c1b334;p=ceph.git mon/AuthMonitor: make 'auth del ...' idempotent Signed-off-by: Sage Weil --- diff --git a/src/mon/AuthMonitor.cc b/src/mon/AuthMonitor.cc index 83b7ac2ce0cb..629451b5eac7 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;