Blame SOURCES/bz1763249-manpages-fix-pcs-syntax.patch

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