Apply fixes from StyleCI (#12120)

This commit is contained in:
Jellyfrog
2020-09-21 15:40:17 +02:00
committed by GitHub
parent 77c531527c
commit 82f43cb98d
1733 changed files with 18337 additions and 18540 deletions

View File

@@ -15,21 +15,21 @@ header('Content-type: application/json');
$device_hostname = clean($_POST['device_hostname']);
if (Auth::user()->hasGlobalAdmin() && isset($device_hostname)) {
if (oxidized_node_update($device_hostname, "LibreNMS GUI refresh", Auth::user()->username)) {
$status = 'ok';
$status = 'ok';
$message = 'Queued refresh in oxidized for device ' . $device_hostname;
} else {
$status = 'error';
$status = 'error';
$message = 'ERROR: Could not queue refresh of oxidized device' . $device_hostname;
};
}
} else {
$status = 'error';
$status = 'error';
$message = 'ERROR: Could not queue refresh oxidized device';
}
$output = array(
$output = [
'status' => $status,
'message' => $message,
);
];
header('Content-type: application/json');
echo _json_encode($output);