Skip to content
This repository was archived by the owner on Aug 4, 2023. It is now read-only.

Commit 705bd20

Browse files
committed
Changed function signature and made image_name mandatory.
1 parent 4abb36a commit 705bd20

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

gcip/addons/container/jobs/crane.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@ def push(
121121

122122

123123
def pull(
124-
src_registry: Union[Registry, str],
125124
*,
125+
src_registry: Union[Registry, str],
126+
image_name: str,
126127
tar_path: Optional[str] = None,
127-
image_name: Optional[str] = None,
128128
image_tag: Optional[str] = None,
129129
docker_client_config: Optional[DockerClientConfig] = None,
130130
crane_image: Optional[Union[Image, str]] = None,
@@ -156,8 +156,6 @@ def pull(
156156
if not tar_path:
157157
tar_path = PredefinedVariables.CI_PROJECT_DIR
158158

159-
if not image_name:
160-
image_name = PredefinedVariables.CI_PROJECT_NAME
161159
image_path = image_name.replace("/", "_")
162160

163161
if not docker_client_config:

0 commit comments

Comments
 (0)