Skip to content

Commit

Permalink
JIRA service - add api_url to optional attributes
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
galet committed Sep 13, 2016
1 parent 449830f commit c8c43ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitlab/objects.py
Expand Up @@ -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'),
Expand Down

0 comments on commit c8c43ee

Please sign in to comment.