summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoey Hagedorn <hagedorn@mcs.anl.gov>2005-11-24 00:24:11 +0000
committerJoey Hagedorn <hagedorn@mcs.anl.gov>2005-11-24 00:24:11 +0000
commit0d195334f53a80aea0c96e86371feb5161a60aac (patch)
tree08f18fc3270fbd11826df4c95b13efa2d6e3b873
parent8bca5ea2cd0c8a8a0ea0093601f0c62b160ff64b (diff)
downloadbcfg2-0d195334f53a80aea0c96e86371feb5161a60aac.tar.gz
bcfg2-0d195334f53a80aea0c96e86371feb5161a60aac.tar.bz2
bcfg2-0d195334f53a80aea0c96e86371feb5161a60aac.zip
added support for client/image info in reports
(Logical change 1.363) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1516 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--reports/xsl-transforms/xsl-transform-includes/text-templates.xsl7
1 files changed, 5 insertions, 2 deletions
diff --git a/reports/xsl-transforms/xsl-transform-includes/text-templates.xsl b/reports/xsl-transforms/xsl-transform-includes/text-templates.xsl
index 9f0314e1f..07e060f47 100644
--- a/reports/xsl-transforms/xsl-transform-includes/text-templates.xsl
+++ b/reports/xsl-transforms/xsl-transform-includes/text-templates.xsl
@@ -1,12 +1,13 @@
<?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:template match="Node">
-<xsl:if test="count(Statistics/Good)+count(Statistics/Bad)+count(Statistics/Stale)+count(Statistics/Modified) > 0">
+<xsl:if test="count(Statistics/Good)+count(Statistics/Bad)+count(Statistics/Extra)+count(Statistics/Stale)+count(Statistics/Modified) > 0">
<xsl:text>
</xsl:text>Node:<xsl:value-of select="HostInfo/@fqdn" /><xsl:text>
- </xsl:text>Time Ran: <xsl:value-of select="Statistics/@time" />.
+ </xsl:text>Time Ran: <xsl:value-of select="Statistics/@time" />.<xsl:text>
+ </xsl:text>(<xsl:value-of select="Client/@image" />/<xsl:value-of select="Client/@profile" />)
<xsl:apply-templates select="Statistics" />
</xsl:if>
</xsl:template>
@@ -17,6 +18,7 @@
<xsl:apply-templates select="Bad" />
<xsl:apply-templates select="Modified" />
<xsl:apply-templates select="Extra" />
+
</xsl:template>
<xsl:template match="Good">
<xsl:text> </xsl:text>Node is clean; Everything has been satisfactorily configured.
@@ -85,6 +87,7 @@
</xsl:apply-templates>
</xsl:template>
+
<xsl:template match="ConfigFile">
<xsl:text>
</xsl:text>Config File: <xsl:value-of select="@name"/>