Skip to content
Snippets Groups Projects
Commit 34f3c11a authored by jurgenhaas's avatar jurgenhaas
Browse files

customer/bitegra/mobimo/drupal#240 Fix the gitlab plugin to find the correct repository

parent a24cd59b
No related branches found
No related tags found
No related merge requests found
......@@ -112,11 +112,13 @@
with_items:
- 'alerta_gitlab.py'
- 'setup.py'
tags: 'plugin'
- name: "Install Gitlab plugin"
shell: 'python setup.py install'
args:
chdir: '/tmp'
tags: 'plugin'
- name: "Copy favicon.ico"
copy:
......
......@@ -32,7 +32,8 @@ class GitlabIssue(PluginBase):
namespace = 'ansible-inventories/hosts/{}'.format(alert.environment)
BASE_URL = '{}/projects'.format(GITLAB_URL)
url = BASE_URL + '?search={}'.format(alert.resource)
origin = alert.origin.split('/').pop()
url = BASE_URL + '?search={}'.format(origin)
r = requests.get(url, headers=self.headers)
pid = False
for p in r.json():
......
from setuptools import find_packages, setup
version = '1.0.1'
version = '1.0.2'
setup(
name='alerta-gitlab',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment