diff --git a/script/pgsqlms b/script/pgsqlms index 7dd695e..ada9a21 100755 --- a/script/pgsqlms +++ b/script/pgsqlms @@ -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' );