Skip to content

Commit

Permalink
Reword Explanatory Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisoverzero committed Apr 10, 2024
1 parent 91879e1 commit 5e1ea50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions samcli/lib/package/ecr_uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ def upload(self, image, resource_name):
self.login()
self.login_session_active = True

# cosborn: We sometimes use the resource_name as the `image` parameter to `tag_translation`.
# This is because these two cases (directly from an archive or by ID) are effectively anonymous,
# so the best identifier we've been given is the resource name.
# Sometimes the `resource_name`` is used as the `image` parameter to `tag_translation`.
# This is because these two cases (directly from an archive or by ID) are effectively
# anonymous, so the best identifier available in scope is the resource name.
try:
if Path(image).is_file():
with open(image, mode="rb") as image_archive:
Expand Down

0 comments on commit 5e1ea50

Please sign in to comment.