Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix: read version before overwriting component
Browse files Browse the repository at this point in the history
  • Loading branch information
ccwienk committed Sep 22, 2023
1 parent bf2fcfc commit 3c551f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings-python/gci/componentmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,9 +452,9 @@ def component_version_oci_ref(
version: str=None,
):
if isinstance(name, Component):
name = name.name
if not version:
version = name.version
name = name.name
elif isinstance(name, ComponentIdentity):
if not version:
version = name.version
Expand Down

0 comments on commit 3c551f1

Please sign in to comment.