Permalink
Browse files

Merge pull request #218 from t-matsuo/fix-grep-failure-on-1.0.13

Low: pgsql: fix grep failure when using pacemaker 1.0.13
  • Loading branch information...
2 parents bbe92a0 + ff9f0ed commit 971b64b7bddcad7fa2f91810fb289e77e0948049 Dejan Muhamedagic committed Apr 2, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 heartbeat/pgsql
View
@@ -898,7 +898,7 @@ pgsql_replication_monitor() {
# I can't get master node name from $OCF_RESKEY_CRM_meta_notify_master_uname on monitor,
# so I will get master node name using crm_mon -n
- crm_mon -n1 | tr -d "\t" | tr -d " " | grep -q "^${RESOURCE_NAME}:.*)Master"
+ crm_mon -n1 | tr -d "\t" | tr -d " " | grep -q "^${RESOURCE_NAME}:.*[):]Master"
if [ $? -ne 0 ] ; then
# If I am Slave and Master is not exist
ocf_log info "Master does not exist."

0 comments on commit 971b64b

Please sign in to comment.