Skip to content

Commit

Permalink
apps: Fix getting DNS base of image URI
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Sul <[email protected]>
  • Loading branch information
mike-sul committed Nov 13, 2024
1 parent 575b0ca commit a38cd5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/get_layers_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def print_layer_details(layer: DockerStore.Layer):
for img in app.images(expand_env=True):
img_uri = img
# if it's a factory image and is not pinned then we need to figure out its tag
if img_uri.startswith(f"hub.{fio_dnsbase}") and -1 == img_uri.find("@sha256:"):
if img_uri.startswith(f"hub.{fio_dnsbase()}") and -1 == img_uri.find("@sha256:"):
# Find out if the image reference is tagged
end_pos = img_uri.rfind(":")
# The image should be referenced with the tag that the builder has tagged
Expand Down

0 comments on commit a38cd5c

Please sign in to comment.