Skip to content

Commit

Permalink
chore: a little more debugging
Browse files Browse the repository at this point in the history
It would be nice know where this process is at when it fails.

Signed-off-by: Ralph Bean <[email protected]>
  • Loading branch information
ralphbean committed Nov 12, 2024
1 parent 221d71a commit d162c8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyxis/create_container_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,10 +378,12 @@ def main(): # pragma: no cover
parsed_data = prepare_parsed_data(args)

# First check if it exists at all
LOGGER.info(f"Checking to see if digest {args.architecture_digest} exists in pyxis")
image = image_already_exists(args, args.architecture_digest, repository=None)
if image:
# Then, check if it exists in association with the given repository
identifier = image["_id"]
LOGGER.info(f"It does! Checking to see if it's associated with {args.name}")
if image_already_exists(args, args.architecture_digest, repository=args.name):
LOGGER.info(
f"Image with given docker_image_digest already exists as {identifier} "
Expand Down

0 comments on commit d162c8d

Please sign in to comment.