Suppress errors from touch when marking GW down. Fixes #9851

(cherry picked from commit 83794361b7)
This commit is contained in:
jim-p 2019-10-28 08:11:05 -04:00
parent f6323615ea
commit 88677f876e

View File

@ -1230,7 +1230,7 @@ function get_gwgroup_members_inner($group, $gateways_status, $gateways_arr, $vip
$pluginparams['name'] = $gwname;
if ($gwdown == true) {
if (!file_exists("/tmp/.down.{$gwname}")) {
touch("/tmp/.down.{$gwname}");
@touch("/tmp/.down.{$gwname}");
$msg .= "\n".implode("|", $status);
$pluginparams['event'] = 'gateway.down';
$statuschanged = true;