feat: install plugins from approved source commits
This commit is contained in:
@@ -77,6 +77,8 @@ class Release:
|
||||
approved: bool
|
||||
immutable: bool
|
||||
approved_payload_sha256: str
|
||||
artifact_kind: str = "wheel"
|
||||
artifact_filename: str = ""
|
||||
|
||||
@classmethod
|
||||
def from_mapping(cls, value: dict[str, Any]) -> "Release":
|
||||
@@ -104,6 +106,8 @@ class Release:
|
||||
approved=value.get("approved") is True or value.get("status") == "approved",
|
||||
immutable=value.get("immutable") is True,
|
||||
approved_payload_sha256=approved_payload_sha256,
|
||||
artifact_kind=str(value.get("artifact_kind") or "wheel").strip(),
|
||||
artifact_filename=str(value.get("artifact_filename") or "").strip(),
|
||||
)
|
||||
|
||||
def supports(self, netbox_version: str, plugin: "CatalogPlugin") -> bool:
|
||||
|
||||
Reference in New Issue
Block a user