Skip to content

Commit

Permalink
fix manifest status comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
hawflau authored Oct 4, 2023
1 parent 69d2a96 commit 34d59f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samcli/commands/init/init_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def _get_manifest(self):
response = requests.get(MANIFEST_URL, timeout=10)
body = response.text
# if the commit is not exist then MANIFEST_URL will be invalid, fall back to use manifest in latest commit
if response.status_code == Status.NOT_FOUND:
if response.status_code == Status.NOT_FOUND.value:
LOG.warning(
"Request to MANIFEST_URL: %s failed, the commit hash in this url maybe invalid, "
"Using manifest.json in the latest commit instead.",
Expand Down

0 comments on commit 34d59f3

Please sign in to comment.