22
22
IMAGE_URI_CONFIG_DIR = os .path .join (".." , "image_uri_config" )
23
23
24
24
25
- def _get_latest_values (existing_content , scope = None ):
25
+ def get_latest_values (existing_content , scope = None ):
26
26
"""Get the latest "registries", "py_versions" and "repository" values
27
27
28
28
Args:
@@ -40,10 +40,10 @@ def _get_latest_values(existing_content, scope=None):
40
40
)
41
41
)
42
42
43
- latest_version = list (existing_content [scope ][ "versions" ].keys ())[- 1 ]
44
- registries = existing_content [scope ][ "versions" ][latest_version ]["registries" ]
45
- py_versions = existing_content [scope ][ "versions" ][latest_version ]["py_versions" ]
46
- repository = existing_content [scope ][ "versions" ][latest_version ]["repository" ]
43
+ latest_version = list (existing_content ["versions" ].keys ())[- 1 ]
44
+ registries = existing_content ["versions" ][latest_version ]["registries" ]
45
+ py_versions = existing_content ["versions" ][latest_version ]["py_versions" ]
46
+ repository = existing_content ["versions" ][latest_version ]["repository" ]
47
47
48
48
return registries , py_versions , repository
49
49
@@ -173,7 +173,7 @@ def add_version(
173
173
"""
174
174
py_versions = py_versions .split ("," )
175
175
processors = processors .split ("," )
176
- latest_registries , latest_py_versions , latest_repository = _get_latest_values (
176
+ latest_registries , latest_py_versions , latest_repository = get_latest_values (
177
177
existing_content , scope
178
178
)
179
179
if not py_versions :
0 commit comments