Skip to content

Commit

Permalink
Merge pull request librenms#9504 from dword4/gitlab-transport-fix
Browse files Browse the repository at this point in the history
changed variable name to resolve issue with Gitlab transport
  • Loading branch information
TheGreatDoc authored Dec 1, 2018
2 parents 909f2c5 + 634f1c0 commit 9a43359
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions LibreNMS/Alert/Transport/Gitlab.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,10 @@ public function deliverAlert($obj, $opts)
public function contactGitlab($obj, $opts)
{
// Don't create tickets for resolutions
if ($obj['state'] == 0) {
return true;
} else {
if ($obj['state'] != 0) {
$device = device_by_id_cache($obj['device_id']); // for event logging

$project_id = $opts['project_id'];
$project_id = $opts['project-id'];
$project_key = $opts['key'];
$details = "Librenms alert for: " . $obj['hostname'];
$description = $obj['msg'];
Expand Down

0 comments on commit 9a43359

Please sign in to comment.