Skip to content

Commit

Permalink
Use OCF_RESKEY_CRM_meta_notify to check notify meta parameter
Browse files Browse the repository at this point in the history
Per discussion and suggestion from clusterlabs users mailing list. See
https://lists.clusterlabs.org/pipermail/users/2019-April/025720.html
  • Loading branch information
ioguix committed Jan 28, 2021
1 parent d5b3e6d commit 1ff0667
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions script/pgsqlms
Original file line number Diff line number Diff line change
Expand Up @@ -1303,10 +1303,8 @@ sub pgsql_validate_all {
}

# check notify=true
$ans = qx{ $CRM_RESOURCE --resource "$OCF_RESOURCE_INSTANCE" \\
--meta --get-parameter notify 2>/dev/null };
chomp $ans;
unless ( lc($ans) =~ /^true$|^on$|^yes$|^y$|^1$/ ) {
unless ( defined $ENV{'OCF_RESKEY_CRM_meta_notify'}
and lc($ENV{'OCF_RESKEY_CRM_meta_notify'}) =~ /^true$|^on$|^yes$|^y$|^1$/ ) {
ocf_exit_reason(
'You must set meta parameter notify=true for your master resource'
);
Expand Down

0 comments on commit 1ff0667

Please sign in to comment.