Skip to content

Commit

Permalink
Merge pull request #201 from snyk-labs/fix/add-image-cluster-to-model
Browse files Browse the repository at this point in the history
fix: add imageCluster to model to expose it
  • Loading branch information
lili2311 authored Oct 9, 2023
2 parents c08f76d + 84ec596 commit dcc56b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pysnyk"
version = "0.9.15"
version = "0.9.16"
description = "A Python client for the Snyk API"
authors = [
"Gareth Rushgrove <[email protected]>",
Expand Down
3 changes: 1 addition & 2 deletions snyk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def __init__(
self.delay = delay
self.verify = verify
self.version = version

# Ensure we don't have a trailing /
if self.api_url[-1] == "/":
self.api_url = self.api_url.rstrip("/")
Expand Down Expand Up @@ -210,7 +209,7 @@ def get_rest_pages(self, path: str, params: dict = {}) -> List:
Helper function to collect paginated responses from the rest API into a single
list.
This collects the "data" list from the first reponse and then appends the
This collects the "data" list from the first response and then appends the
any further "data" lists if a next link is found in the links field.
"""
first_page_response = self.get(path, params)
Expand Down
1 change: 1 addition & 0 deletions snyk/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,7 @@ class Project(DataClassJSONMixin):
hostname: Optional[str] = None
remoteRepoUrl: Optional[str] = None
branch: Optional[str] = None
imageCluster: Optional[str] = None
attributes: Optional[Dict[str, List[str]]] = None
_tags: Optional[List[Any]] = field(default_factory=list)

Expand Down

0 comments on commit dcc56b8

Please sign in to comment.