[Cluster-devel] conga/ricci/ricci Ricci.cpp
kupcevic at sourceware.org
kupcevic at sourceware.org
Mon Jun 19 22:41:52 UTC 2006
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<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;
More information about the Cluster-devel
mailing list