Skip to content

Commit

Permalink
Merge pull request #57 from ImMin5/master
Browse files Browse the repository at this point in the history
Modify get owner_type at github registry connector
  • Loading branch information
ImMin5 authored Jan 20, 2024
2 parents f26c8b0 + 46e28fb commit 802c595
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/spaceone/repository/connector/registry_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,11 @@ def get_tags(self, registry_url, image):


class GithubContainerRegistryConnector(RegistryConnector):
def get_tags(self, registry_url, image, owner_type="USER"):
def get_tags(self, registry_url, image):
owner_type = self.config.get("owner_type")
github_token = self.config.get("github_token")
name, package_name = image.split("/", 1)
registry_url = "api.github.com"
github_token = self.config.get("github_token")

headers = {
"accept": "application/vnd.github+json",
Expand Down

0 comments on commit 802c595

Please sign in to comment.