From 265cea92d379a77d722621fa6edf6fddd2ba2cfa Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 8 Sep 2015 11:26:03 -0400 Subject: [PATCH] Fix syntax/quoting error in rc.carpmaster and rc.carpbackup --- src/etc/rc.carpbackup | 2 +- src/etc/rc.carpmaster | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/rc.carpbackup b/src/etc/rc.carpbackup index 6961bc89bd..34fca29976 100755 --- a/src/etc/rc.carpbackup +++ b/src/etc/rc.carpbackup @@ -51,7 +51,7 @@ $friendly_descr = convert_friendly_interface_to_friendly_descr($friendly); $vips = link_interface_to_vips($friendly, '', $vhid); $carp_iface = "{$friendly}_vip{$vhid}"; foreach ($vips as $vip) { - $notificationmsg = sprintf('Carp cluster member "{$friendly_descr)(%2$s): {$vip['subnet']} (%1$s)" has resumed the state "BACKUP" for vhid %s', $argument, $vip['descr'], $vhid); + $notificationmsg = sprintf('Carp cluster member "{$friendly_descr)(%2$s): {$vip["subnet"]} (%1$s)" has resumed the state "BACKUP" for vhid %s', $argument, $vip['descr'], $vhid); notify_via_smtp($notificationmsg); notify_via_growl($notificationmsg); diff --git a/src/etc/rc.carpmaster b/src/etc/rc.carpmaster index 022fe8f2a2..91f3c0e383 100755 --- a/src/etc/rc.carpmaster +++ b/src/etc/rc.carpmaster @@ -51,7 +51,7 @@ $friendly_descr = convert_friendly_interface_to_friendly_descr($friendly); $vips = link_interface_to_vips($friendly, '', $vhid); $carp_iface = "{$friendly}_vip{$vhid}"; foreach ($vips as $vip) { - $notificationmsg = sprintf('Carp cluster member "{$friendly_descr)(%2$s): {$vip['subnet']} (%1$s)" has resumed the state "MASTER" for vhid %s', $argument, $vip['descr'], $vhid); + $notificationmsg = sprintf('Carp cluster member "{$friendly_descr)(%2$s): {$vip["subnet"]} (%1$s)" has resumed the state "MASTER" for vhid %s', $argument, $vip['descr'], $vhid); notify_via_smtp($notificationmsg); notify_via_growl($notificationmsg);