Skip to contentSkip to conversation

conga/ricci/ricci Ricci.cpp

Cluster-devel [email protected] 1 participant 1 message Jun 19, 2006

lore
Share & tools
lore
#0 lore raw

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

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;