From mboxrd@z Thu Jan 1 00:00:00 1970 From: kupcevic@sourceware.org Date: 19 Jun 2006 22:41:52 -0000 Subject: [Cluster-devel] conga/ricci/ricci Ricci.cpp Message-ID: <20060619224152.10961.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: conga Changes by: kupcevic at sourceware.org 2006-06-19 22:41:51 Modified files: ricci/ricci : Ricci.cpp Log message: ricci: display OS version only if authenticated (not needed for discovery) Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/ricci/Ricci.cpp.diff?cvsroot=cluster&r1=1.9&r2=1.10 --- conga/ricci/ricci/Ricci.cpp 2006/06/19 21:21:54 1.9 +++ conga/ricci/ricci/Ricci.cpp 2006/06/19 22:41:51 1.10 @@ -73,15 +73,17 @@ if (name.size()) header.set_attr("hostname", name); - string os = os_release(); - if (os.size()) - header.set_attr("os", os); - pair c_info = clusterinfo(); if (c_info.first.size()) header.set_attr("clustername", c_info.first); if (c_info.second.size()) header.set_attr("clusteralias", c_info.second); + + if (authed) { + string os = os_release(); + if (os.size()) + header.set_attr("os", os); + } } return header;