Skip to content

Commit

Permalink
Fix remote image logging KeyError
Browse files Browse the repository at this point in the history
  • Loading branch information
nusantara-self committed Feb 6, 2024
1 parent 1778cdd commit 3f13c90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dockerhub.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def get_remote_image_id(self, namespace, image, tag):

metadata = json.loads(resp.content.decode("utf-8"))
try:
print(f"DEBUG: remote image last pushed: {metadata['images'][0]['last-pushed']}")
print(f"DEBUG: remote image last pushed: {metadata['images'][0]['last_pushed']}")
print(f"DEBUG: remote image status: {metadata['images'][0]['status']}")
print(f"DEBUG: repository tag status: {metadata['status']}")
print(f"DEBUG: repository tag last updated: {metadata['last_updated']}")
Expand Down

0 comments on commit 3f13c90

Please sign in to comment.