resource-agents/SOURCES/bz1763249-manpages-fix-pcs-...

54 lines
1.8 KiB
Diff

From 0903a60930238238d5caa6c3b42b28d7bc4cccf4 Mon Sep 17 00:00:00 2001
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
Date: Mon, 26 Oct 2020 13:11:05 +0100
Subject: [PATCH 1/2] man: use promotable keyword in manpage examples
---
doc/man/ra2refentry.xsl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/man/ra2refentry.xsl b/doc/man/ra2refentry.xsl
index d0535fd36..f3cdcdbb2 100644
--- a/doc/man/ra2refentry.xsl
+++ b/doc/man/ra2refentry.xsl
@@ -556,7 +556,7 @@
<!-- Insert a master/slave set definition if the resource
agent supports promotion and demotion -->
<xsl:if test="actions/action/@name = 'promote' and actions/action/@name = 'demote'">
- <xsl:text>--master</xsl:text>
+ <xsl:text>promotable</xsl:text>
</xsl:if>
</programlisting>
From bfcd5796ae12e6a43a245d0c785f183342943393 Mon Sep 17 00:00:00 2001
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
Date: Mon, 26 Oct 2020 16:56:00 +0100
Subject: [PATCH 2/2] man: use OCF_CHECK_LEVEL for depth parameters in pcs
examples
---
doc/man/ra2refentry.xsl | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/doc/man/ra2refentry.xsl b/doc/man/ra2refentry.xsl
index f3cdcdbb2..f8e12321f 100644
--- a/doc/man/ra2refentry.xsl
+++ b/doc/man/ra2refentry.xsl
@@ -612,7 +612,14 @@
<xsl:choose>
<xsl:when test="name() = 'name'"><!-- suppress --></xsl:when>
<xsl:otherwise>
- <xsl:value-of select="name()"/>
+ <xsl:choose>
+ <xsl:when test="name() != 'depth'">
+ <xsl:value-of select="name()"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>OCF_CHECK_LEVEL</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
<xsl:text>="</xsl:text>
<xsl:value-of select="current()"/>
<xsl:text>" </xsl:text>