summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
authorluckman212 <luke.hamburg@gmail.com>2018-09-26 08:38:45 -0400
committerRenato Botelho <renato@netgate.com>2018-09-27 08:50:55 -0300
commit46eb8b6346b93cae31f35647e26d06bf6da7ba44 (patch)
tree6afc3d255db7403ac411e3304f4ea4cce0247c7f /src/etc
parent4245a90ee99c644e3244861e0e2fbce56a601edb (diff)
downloadpfsense-46eb8b6346b93cae31f35647e26d06bf6da7ba44.zip
pfsense-46eb8b6346b93cae31f35647e26d06bf6da7ba44.tar.gz
garga changes
move conditional before platform_booting and join w && instead of indenting (cherry picked from commit b974f79a368b253272b2cf9fc7448f4fb91b12ff)
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/inc/gwlb.inc12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/etc/inc/gwlb.inc b/src/etc/inc/gwlb.inc
index cbc4e62..0d9444c 100644
--- a/src/etc/inc/gwlb.inc
+++ b/src/etc/inc/gwlb.inc
@@ -1264,13 +1264,11 @@ function get_gwgroup_members_inner($group, $gateways_status, $gateways_arr, $vip
$tiers_count = count($tiers);
if ($tiers_count == 0) {
/* Oh dear, we have no members! Engage Plan B */
- if (!platform_booting()) {
- if (isset($config['system']['gw-debug'])) {
- $msg = sprintf(gettext('Gateways status could not be determined, considering all as up/active. (Group: %s)'), $group['name']);
- log_error($msg);
- notify_via_growl($msg);
- //notify_via_smtp($msg);
- }
+ if (isset($config['system']['gw-debug']) && (!platform_booting())) {
+ $msg = sprintf(gettext('Gateways status could not be determined, considering all as up/active. (Group: %s)'), $group['name']);
+ log_error($msg);
+ notify_via_growl($msg);
+ //notify_via_smtp($msg);
}
$tiers = $backupplan;
}
OpenPOWER on IntegriCloud