]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/AuthMonitor: make 'auth del ...' idempotent
authorSage Weil <sage@inktank.com>
Wed, 17 Jul 2013 00:21:33 +0000 (17:21 -0700)
committerSage Weil <sage@inktank.com>
Wed, 17 Jul 2013 00:21:33 +0000 (17:21 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/AuthMonitor.cc

index 83b7ac2ce0cb5fa1f57451c8adc7c8733c5c64ce..629451b5eac7f3fa4649bf041ff36cea8ff7321e 100644 (file)
@@ -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;