Blame SOURCES/bz2157872-5-pgsqlms-alidate-all-OCF_CHECK_LEVEL-10.patch

2de1a8
--- ClusterLabs-resource-agents-fd0720f7/heartbeat/pgsqlms	2023-01-16 10:54:30.897188238 +0100
2de1a8
+++ pgsqlms	2023-01-10 14:21:19.281286242 +0100
2de1a8
@@ -1351,12 +1351,14 @@
2de1a8
             return $OCF_ERR_ARGS;
2de1a8
         }
2de1a8
 
2de1a8
-        $guc = qx{ $POSTGRES -C primary_conninfo -D "$pgdata" $start_opts};
2de1a8
-        unless ($guc =~ /\bapplication_name='?$nodename'?\b/) {
2de1a8
-            ocf_exit_reason(
2de1a8
-                q{Parameter "primary_conninfo" MUST contain 'application_name=%s'. }.
2de1a8
-                q{It is currently set to '%s'}, $nodename, $guc );
2de1a8
-            return $OCF_ERR_ARGS;
2de1a8
+        if ( $ocf_check_level == 10 ) {
2de1a8
+            $guc = qx{ $POSTGRES -C primary_conninfo -D "$pgdata" $start_opts};
2de1a8
+            unless ($guc =~ /\bapplication_name='?$nodename'?\b/) {
2de1a8
+                ocf_exit_reason(
2de1a8
+                    q{Parameter "primary_conninfo" MUST contain 'application_name=%s'. }.
2de1a8
+                    q{It is currently set to '%s'}, $nodename, $guc );
2de1a8
+                return $OCF_ERR_ARGS;
2de1a8
+            }
2de1a8
         }
2de1a8
     }
2de1a8
     else {