summaryrefslogtreecommitdiff
path: root/gitlab
diff options
context:
space:
mode:
authorMichal Galet <michal.galet@gmail.com>2016-09-13 09:30:56 +0200
committerMichal Galet <michal.galet@gmail.com>2016-09-13 09:30:56 +0200
commitc8c43ee74fa58c1011a404c2a0f296a0042451e9 (patch)
treeb9ce3d36fa416040c82a9288dc540f1a34055a0f /gitlab
parent449830f7ddad06d035995d7d004111a1be774532 (diff)
downloadgitlab-c8c43ee74fa58c1011a404c2a0f296a0042451e9.tar.gz
JIRA service - add api_url to optional attributes
The api_url attribute is mandatory at least since GitLab 8.11. Otherwise server returns gitlab.exceptions.GitlabUpdateError: 400: 400 (Bad request) "api_url" not given. Keep it as optional to maintain backward compatibility with older GitLab versions.
Diffstat (limited to 'gitlab')
-rw-r--r--gitlab/objects.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py
index be0dbef..bafd0e5 100644
--- a/gitlab/objects.py
+++ b/gitlab/objects.py
@@ -1788,7 +1788,7 @@ class ProjectService(GitlabObject):
'irker': (('recipients', ), ('default_irc_uri', 'server_port',
'server_host', 'colorize_messages')),
'jira': (('new_issue_url', 'project_url', 'issues_url'),
- ('description', 'username', 'password')),
+ ('api_url', 'description', 'username', 'password')),
'pivotaltracker': (('token', ), tuple()),
'pushover': (('api_key', 'user_key', 'priority'), ('device', 'sound')),
'redmine': (('new_issue_url', 'project_url', 'issues_url'),