File bsc#1175557-0004-Low-extra-add-vim-modelines-to-agents.patch of Package pacemaker.26124

From 851ac9de932ada8c952e3e18c4c802bf09673883 Mon Sep 17 00:00:00 2001
From: Ken Gaillot <kgaillot@redhat.com>
Date: Tue, 16 Jul 2019 17:38:21 -0500
Subject: [PATCH 4/6] Low: extra: add vim modelines to agents

Ugly, but helpful to avoid tab vs space issues and especially with .in files
---
 extra/resources/ClusterMon.in  | 2 ++
 extra/resources/Dummy          | 4 +++-
 extra/resources/HealthCPU      | 2 ++
 extra/resources/HealthIOWait   | 4 +++-
 extra/resources/HealthSMART.in | 2 ++
 extra/resources/Stateful       | 2 ++
 extra/resources/SysInfo.in     | 2 ++
 extra/resources/SystemHealth   | 2 ++
 extra/resources/attribute      | 4 ++--
 extra/resources/controld       | 4 +++-
 extra/resources/ifspeed.in     | 4 +++-
 extra/resources/o2cb.in        | 2 ++
 extra/resources/ping           | 2 ++
 extra/resources/pingd          | 2 ++
 extra/resources/remote         | 2 ++
 15 files changed, 34 insertions(+), 6 deletions(-)

diff --git a/extra/resources/ClusterMon.in b/extra/resources/ClusterMon.in
index ed8bc7673..c533d2356 100755
--- a/extra/resources/ClusterMon.in
+++ b/extra/resources/ClusterMon.in
@@ -258,3 +258,5 @@ usage|help)     ClusterMon_usage
 esac
 
 exit $?
+
+# vim: set filetype=sh expandtab tabstop=4 softtabstop=4 shiftwidth=4 textwidth=80:
diff --git a/extra/resources/Dummy b/extra/resources/Dummy
index 643d1afa6..33d892b61 100755
--- a/extra/resources/Dummy
+++ b/extra/resources/Dummy
@@ -3,7 +3,7 @@
 # ocf:pacemaker:Dummy resource agent
 #
 # Original copyright 2004 SUSE LINUX AG, Lars Marowsky-Br<E9>e
-# Later changes copyright 2008-2018 the Pacemaker project contributors
+# Later changes copyright 2008-2019 the Pacemaker project contributors
 #
 # The version control history for this file may have further details.
 #
@@ -276,3 +276,5 @@ esac
 rc=$?
 ocf_log debug "${OCF_RESOURCE_INSTANCE} $__OCF_ACTION : $rc"
 exit $rc
+
+# vim: set filetype=sh expandtab tabstop=4 softtabstop=4 shiftwidth=4 textwidth=80:
diff --git a/extra/resources/HealthCPU b/extra/resources/HealthCPU
index 767b15451..1f5cdcb21 100755
--- a/extra/resources/HealthCPU
+++ b/extra/resources/HealthCPU
@@ -195,3 +195,5 @@ esac
 rc=$?
 ocf_log debug "${OCF_RESOURCE_INSTANCE} $__OCF_ACTION : $rc"
 exit $rc
+
+# vim: set filetype=sh expandtab tabstop=4 softtabstop=4 shiftwidth=4 textwidth=80:
diff --git a/extra/resources/HealthIOWait b/extra/resources/HealthIOWait
index 6fadec2bc..a6c132c8f 100755
--- a/extra/resources/HealthIOWait
+++ b/extra/resources/HealthIOWait
@@ -2,7 +2,7 @@
 #
 # ocf:pacemaker:HealthIOWait resource agent
 #
-# Copyright 2004-2018 the Pacemaker project contributors
+# Copyright 2004-2019 the Pacemaker project contributors
 #
 # The version control history for this file may have further details.
 #
@@ -174,3 +174,5 @@ esac
 rc=$?
 ocf_log debug "${OCF_RESOURCE_INSTANCE} $__OCF_ACTION : $rc"
 exit $rc
+
+# vim: set filetype=sh expandtab tabstop=4 softtabstop=4 shiftwidth=4 textwidth=80:
diff --git a/extra/resources/HealthSMART.in b/extra/resources/HealthSMART.in
index 419b0658e..983d799c9 100755
--- a/extra/resources/HealthSMART.in
+++ b/extra/resources/HealthSMART.in
@@ -313,3 +313,5 @@ esac
 rc=$?
 ocf_log debug "${OCF_RESOURCE_INSTANCE} $__OCF_ACTION : $rc"
 exit $rc
+
+# vim: set filetype=sh expandtab tabstop=4 softtabstop=4 shiftwidth=4 textwidth=80:
diff --git a/extra/resources/Stateful b/extra/resources/Stateful
index 9d746a414..35d84aa8d 100755
--- a/extra/resources/Stateful
+++ b/extra/resources/Stateful
@@ -236,3 +236,5 @@ usage|help)     stateful_usage $OCF_SUCCESS;;
 esac
 
 exit $?
+
+# vim: set filetype=sh expandtab tabstop=4 softtabstop=4 shiftwidth=4 textwidth=80:
diff --git a/extra/resources/SysInfo.in b/extra/resources/SysInfo.in
index 77888048f..8de271462 100755
--- a/extra/resources/SysInfo.in
+++ b/extra/resources/SysInfo.in
@@ -368,3 +368,5 @@ usage|help)     SysInfo_usage
 esac
 
 exit $?
+
+# vim: set filetype=sh expandtab tabstop=4 softtabstop=4 shiftwidth=4 textwidth=80:
diff --git a/extra/resources/SystemHealth b/extra/resources/SystemHealth
index de4b056ff..e23ad4ec4 100755
--- a/extra/resources/SystemHealth
+++ b/extra/resources/SystemHealth
@@ -235,3 +235,5 @@ esac
 rc=$?
 ocf_log debug "${OCF_RESOURCE_INSTANCE} $__OCF_ACTION : $rc"
 exit $rc
+
+# vim: set filetype=sh expandtab tabstop=4 softtabstop=4 shiftwidth=4 textwidth=80:
diff --git a/extra/resources/attribute b/extra/resources/attribute
index 57b690f1c..626607f6f 100755
--- a/extra/resources/attribute
+++ b/extra/resources/attribute
@@ -2,7 +2,7 @@
 #
 # ocf:pacemaker:attribute resource agent
 #
-# Copyright 2016-2018 the Pacemaker project contributors
+# Copyright 2016-2019 the Pacemaker project contributors
 #
 # The version control history for this file may have further details.
 #
@@ -232,4 +232,4 @@ esac
 
 exit $?
 
-# vim: expandtab:tabstop=4:softtabstop=4:shiftwidth=4:textwidth=80
+# vim: set filetype=sh expandtab tabstop=4 softtabstop=4 shiftwidth=4 textwidth=80:
diff --git a/extra/resources/controld b/extra/resources/controld
index 0936a2493..4dd27d42c 100755
--- a/extra/resources/controld
+++ b/extra/resources/controld
@@ -2,7 +2,7 @@
 #
 # ocf:pacemaker:controld resource agent
 #
-# Copyright 2008-2018 the Pacemaker project contributors
+# Copyright 2008-2019 the Pacemaker project contributors
 #
 # The version control history for this file may have further details.
 #
@@ -284,3 +284,5 @@ esac
 rc=$?
 
 exit $rc
+
+# vim: set filetype=sh expandtab tabstop=4 softtabstop=4 shiftwidth=4 textwidth=80:
diff --git a/extra/resources/ifspeed.in b/extra/resources/ifspeed.in
index 49d4c1c3d..d423442b1 100755
--- a/extra/resources/ifspeed.in
+++ b/extra/resources/ifspeed.in
@@ -2,7 +2,7 @@
 #
 # ocf:pacemaker:ifspeed resource agent
 #
-# Copyright 2011-2018 the Pacemaker project contributors
+# Copyright 2011-2019 the Pacemaker project contributors
 #
 # The version control history for this file may have further details.
 #
@@ -546,3 +546,5 @@ case $__OCF_ACTION in
 esac
 
 exit $?
+
+# vim: set filetype=sh expandtab tabstop=4 softtabstop=4 shiftwidth=4 textwidth=80:
diff --git a/extra/resources/o2cb.in b/extra/resources/o2cb.in
index 5b6ad7ae6..a3cf9760b 100755
--- a/extra/resources/o2cb.in
+++ b/extra/resources/o2cb.in
@@ -443,3 +443,5 @@ usage|help)     o2cb_usage
 esac
 
 exit $?
+
+# vim: set filetype=sh expandtab tabstop=4 softtabstop=4 shiftwidth=4 textwidth=80:
diff --git a/extra/resources/ping b/extra/resources/ping
index 10c272b7b..ce46d3fe2 100755
--- a/extra/resources/ping
+++ b/extra/resources/ping
@@ -414,3 +414,5 @@ usage|help)     ping_usage
                 ;;
 esac
 exit $?
+
+# vim: set filetype=sh expandtab tabstop=4 softtabstop=4 shiftwidth=4 textwidth=80:
diff --git a/extra/resources/pingd b/extra/resources/pingd
index 2723ad03c..f84a77273 100755
--- a/extra/resources/pingd
+++ b/extra/resources/pingd
@@ -185,3 +185,5 @@ esac
 
 ${OCF_ROOT}/resource.d/pacemaker/ping $1
 exit $?
+
+# vim: set filetype=sh expandtab tabstop=4 softtabstop=4 shiftwidth=4 textwidth=80:
diff --git a/extra/resources/remote b/extra/resources/remote
index 9112bbfcd..6da7a36f3 100755
--- a/extra/resources/remote
+++ b/extra/resources/remote
@@ -109,3 +109,5 @@ esac
 rc=$?
 ocf_log debug "${OCF_RESOURCE_INSTANCE} $__OCF_ACTION : $rc"
 exit $rc
+
+# vim: set filetype=sh expandtab tabstop=4 softtabstop=4 shiftwidth=4 textwidth=80:
-- 
2.26.2

openSUSE Build Service is sponsored by