Skip to content
Snippets Groups Projects
Commit 511e7c05 authored by jurgenhaas's avatar jurgenhaas
Browse files

customer/bitegra/mobimo/drupal#240 Bug fix

parent a6074cf1
No related branches found
No related tags found
No related merge requests found
......@@ -32,9 +32,9 @@ class Alerta:
self.args, self.extras = self.parser.parse_known_args()
if os.path.isfile(self.args.payload):
fp = file(self.args.payload)
for line in fp:
self.process(line)
with open(self.args.payload) as fp:
for line in fp:
self.process(line)
else:
self.process(self.args.payload)
......@@ -54,7 +54,7 @@ class Alerta:
'rawData': '',
}
if 'pid' in self.args:
values['tags'].append('gitlab_project_id:%s' % self.args.pid)
values['attributes'] = {"gitlab_project_id": "%s" % self.args.pid}
return values
@staticmethod
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment