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

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