conga/ricci/ricci Ricci.cpp
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)
ricci/ricci/Ricci.cpp +6 -4
@@ -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<string, string> 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;