summaryrefslogtreecommitdiffstats
path: root/reports/xsl-transforms
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-10-02 04:12:31 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-10-02 04:12:31 +0000
commit18ca62dd195dc66ca39f1cd7069718377378c2d5 (patch)
treeb9ef99f00a6b413725cba2d71deccd726d41a96f /reports/xsl-transforms
parentccd28883cc3ee37cc12950faac5557a565814b23 (diff)
downloadbcfg2-18ca62dd195dc66ca39f1cd7069718377378c2d5.tar.gz
bcfg2-18ca62dd195dc66ca39f1cd7069718377378c2d5.tar.bz2
bcfg2-18ca62dd195dc66ca39f1cd7069718377378c2d5.zip
add extra config info
(Logical change 1.331) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1352 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'reports/xsl-transforms')
-rw-r--r--reports/xsl-transforms/nodes-digest-email.xsl41
-rw-r--r--reports/xsl-transforms/nodes-digest-html.xsl6
2 files changed, 31 insertions, 16 deletions
diff --git a/reports/xsl-transforms/nodes-digest-email.xsl b/reports/xsl-transforms/nodes-digest-email.xsl
index 31f68cad5..6dcb24bed 100644
--- a/reports/xsl-transforms/nodes-digest-email.xsl
+++ b/reports/xsl-transforms/nodes-digest-email.xsl
@@ -1,38 +1,47 @@
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns="http://www.w3.org/1999/xhtml">
-<xsl:include href="xsl-transform-includes/text-templates.xsl" />
-<xsl:output method="text" indent="no" media-type="text/plain" />
-<xsl:template match="Report">
-<xsl:choose>
-<xsl:when test="count(/Report/Node/Statistics/Bad) > 0">Subject: BCFG Nightly Errors (<xsl:value-of select="@name" />)
-</xsl:when>
-<xsl:otherwise>Subject: BCFG Nightly Good (<xsl:value-of select="@name" />)
-</xsl:otherwise>
+ <xsl:include href="xsl-transform-includes/text-templates.xsl" />
+ <xsl:output method="text" indent="no" media-type="text/plain" />
+ <xsl:template match="Report">
+ <xsl:choose>
+ <xsl:when test="count(/Report/Node/Statistics/Bad) > 0">Subject: BCFG Nightly Errors (<xsl:value-of select="@name" />)
+ </xsl:when>
+ <xsl:otherwise>Subject: BCFG Nightly Good (<xsl:value-of select="@name" />)
+ </xsl:otherwise>
</xsl:choose>
<xsl:text>
</xsl:text>Report Run @ <xsl:value-of select="@time" />
SUMMARY:
-<xsl:text> </xsl:text><xsl:value-of select="count(/Report/Node)" /> nodes were included in your report.<xsl:text>
+<xsl:text> </xsl:text>
+<xsl:value-of select="count(/Report/Node)" /> nodes were included in your report.<xsl:text>
</xsl:text>
<xsl:if test="count(/Report/Node)-count(/Report/Node/Statistics/Good) = 0">
-<xsl:text> </xsl:text>All machines are configured to specification.
+ <xsl:text> </xsl:text>All machines are configured to specification.
</xsl:if><xsl:if test="count(/Report/Node/Statistics/Good) > 0">
-<xsl:text> </xsl:text><xsl:value-of select="count(/Report/Node/Statistics/Good)" /> nodes are clean.
+<xsl:text> </xsl:text>
+<xsl:value-of select="count(/Report/Node/Statistics/Good)" /> nodes are clean.
</xsl:if>
<xsl:if test="count(/Report/Node/Statistics/Bad) > 0">
-<xsl:text> </xsl:text><xsl:value-of select="count(/Report/Node/Statistics/Bad)" /> nodes are bad.
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="count(/Report/Node/Statistics/Bad)" /> nodes are bad.
+</xsl:if>
+<xsl:if test="count(/Report/Node/Statistics/Extra) > 0">
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="count(/Report/Node/Statistics/Extra)" /> nodes contain extra configuration. (includes both good and bad nodes)
</xsl:if>
<xsl:if test="count(/Report/Node/Statistics/Modified) > 0">
-<xsl:text> </xsl:text><xsl:value-of select="count(/Report/Node/Statistics/Modified)" /> nodes were modified in the last run. (includes both good and bad nodes)
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="count(/Report/Node/Statistics/Modified)" /> nodes were modified in the last run. (includes both good and bad nodes)
</xsl:if>
<xsl:if test="count(/Report/Node/Statistics/Stale) > 0">
-<xsl:text> </xsl:text><xsl:value-of select="count(/Report/Node/Statistics/Stale)" /> nodes did not run this calendar day.
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="count(/Report/Node/Statistics/Stale)" /> nodes did not run this calendar day.
</xsl:if>
DETAILS:
<xsl:apply-templates select="Node">
-<xsl:sort select="Statistics/@state" order="descending"/>
-<xsl:sort select="@name"/>
+ <xsl:sort select="Statistics/@state" order="descending"/>
+ <xsl:sort select="@name"/>
</xsl:apply-templates>
</xsl:template>
</xsl:stylesheet> \ No newline at end of file
diff --git a/reports/xsl-transforms/nodes-digest-html.xsl b/reports/xsl-transforms/nodes-digest-html.xsl
index 1d57c2da0..a03a5bde0 100644
--- a/reports/xsl-transforms/nodes-digest-html.xsl
+++ b/reports/xsl-transforms/nodes-digest-html.xsl
@@ -44,6 +44,12 @@
<span class="nodelisttitle"><xsl:value-of select="count(/Report/Node/Statistics/Bad)" /> nodes are bad.<br /></span>
</div>
</xsl:if>
+
+ <xsl:if test="count(/Report/Node/Statistics/Extra) > 0">
+ <div class="extra">
+ <span class="nodelisttitle"><xsl:value-of select="count(/Report/Node/Statistics/Extra)" /> nodes have extra configuration. (includes both good and bad nodes)<br /></span>
+ </div>
+ </xsl:if>
<xsl:if test="count(/Report/Node/Statistics/Modified) > 0">
<div class="modified">