From a285dc554b5c4acf29b48b702a5093f8709d1bfc Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Mon, 17 Dec 2018 08:46:55 +0100 Subject: [PATCH] openvpn: small cleanup --- src/etc/rc.syshook.d/carp/20-openvpn | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/etc/rc.syshook.d/carp/20-openvpn b/src/etc/rc.syshook.d/carp/20-openvpn index ad5f2c50e..1bab345ed 100755 --- a/src/etc/rc.syshook.d/carp/20-openvpn +++ b/src/etc/rc.syshook.d/carp/20-openvpn @@ -45,14 +45,13 @@ if (!strstr($subsystem, '@')) { exit(1); } -list($vhid, $iface) = explode("@", $subsystem); +list ($vhid, $iface) = explode('@', $subsystem); $friendly = convert_real_interface_to_friendly_interface_name($iface); $carp_iface = "{$friendly}_vip{$vhid}"; $friendly_descr = convert_friendly_interface_to_friendly_descr($carp_iface); -$notificationmsg = sprintf('Carp cluster member "%s (%s)" has resumed the state "%s" for vhid %s', $friendly_descr, $subsystem, $type, $vhid); -log_error($notificationmsg); +log_error(sprintf('Carp cluster member "%s (%s)" has resumed the state "%s" for vhid %s', $friendly_descr, $subsystem, $type, $vhid)); switch ($type) { case 'MASTER':