Permalink
Browse files

fix port in slaveof command

  • Loading branch information...
1 parent 5e407dc commit fd43b12445a294b81e36aefe069361351bcb1562 @michael-dev committed Sep 2, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 heartbeat/redis
View
@@ -297,9 +297,11 @@ test_slave() {
set_master() {
local master_host=$1
+ local port
+ port=$(config_get port)
ocf_log info "Set $REDIS_SERVER_NAME to be a slave of $master_host";
- redis_cmd 1 slaveof $master_host $OCF_RESKEY_port
+ redis_cmd 1 slaveof $master_host $port
return $?
}

0 comments on commit fd43b12

Please sign in to comment.