Skip to content

Commit

Permalink
fix in get_log_nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim authored and Tim committed Jul 10, 2020
1 parent f575bce commit 3e57473
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions motherlode/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ def get_log_nodes(dataloader_name, image):
"LoadingLog",
dockerhub_image_name=image.tags[0].split(":")[0],
dockerhub_image_tag=image.tags[0].split(":")[1],
dockerhub_image_hash=image.id,
dockerhub_image_hash=docker_client.images.get_registry_data(
image.tags[0]
).short_id,
)
)

Expand Down Expand Up @@ -207,7 +209,9 @@ def run_datasource_containers():
pull_image(datasource["dockerimage"], config.DOCKER_FORCE_FRESH_PULL)

image = docker_client.images.get(datasource["dockerimage"])
image_docker_hub_id_short = docker_client.images.get_registry_data(image.tags[0])
image_docker_hub_id_short = docker_client.images.get_registry_data(
image.tags[0]
)
log.info(
"'{}' using image '{}'".format(image.tags[0], image_docker_hub_id_short)
)
Expand Down

0 comments on commit 3e57473

Please sign in to comment.