Merge pull request #3930 from rtfd/humitos/integrations/fixes

Fix attribute order call
remove-default-role
Manuel Kaufmann 2018-04-10 17:27:46 -05:00 committed by GitHub
commit 64def2d3b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -210,7 +210,7 @@ class GitLabService(Service):
organization.save()
return organization
def get_webhook_data(self, repo_id, integration, project):
def get_webhook_data(self, repo_id, project, integration):
"""
Get webhook JSON data to post to the API.
@ -259,7 +259,7 @@ class GitLabService(Service):
# https://docs.gitlab.com/ce/api/README.html#namespaced-path-encoding
repo_id = json.loads(project.remote_repository.json).get('id')
data = self.get_webhook_data(repo_id, integration, project)
data = self.get_webhook_data(repo_id, project, integration)
resp = None
try:
resp = session.post(