Skip to content

Commit

Permalink
release provider name is now the entry point name
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristan Carel committed Jul 27, 2015
1 parent 499953d commit 9734c1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion easy_upgrade/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,4 +337,4 @@ def __init__(self, config):
provider = entrypoint.load()
name = entrypoint.name
if name in config:
self.providers[name] = provider(config)
self.providers[name] = provider(name, config)
4 changes: 2 additions & 2 deletions easy_upgrade/lib/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ def get_latest_release(self):


class GitHubProvider(ReleaseProvider):
def __init__(self, top_config, release_cls=GitHubRelease):
super(GitHubProvider, self).__init__('github', top_config, release_cls)
def __init__(self, name, top_config, release_cls=GitHubRelease):
super(GitHubProvider, self).__init__(name, top_config, release_cls)
self.basic_auth = self.get('basic-auth')
if self.basic_auth:
self.basic_auth = tuple(self.basic_auth.split(':', 1))
Expand Down

0 comments on commit 9734c1a

Please sign in to comment.