]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
keyring: don't print auid if it is the default
authorSage Weil <sage.weil@dreamhost.com>
Sat, 12 Nov 2011 22:55:28 +0000 (14:55 -0800)
committerSage Weil <sage.weil@dreamhost.com>
Sat, 12 Nov 2011 22:55:28 +0000 (14:55 -0800)
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/auth/KeyRing.cc

index 4abf9e48e393aef49a97ce3684b202c20b40ddc5..b4542c629647c2b9579d2f05e345ddb6ae05e3bf 100644 (file)
@@ -222,7 +222,8 @@ void KeyRing::print(ostream& out)
        ++p) {
     out << "[" << p->first << "]" << std::endl;
     out << "\tkey = " << p->second.key << std::endl;
-    out << "\tauid = " << p->second.auid << std::endl;
+    if (p->second.auid != CEPH_AUTH_UID_DEFAULT)
+      out << "\tauid = " << p->second.auid << std::endl;
 
     for (map<string, bufferlist>::iterator q = p->second.caps.begin();
         q != p->second.caps.end();