Skip to content

Commit

Permalink
fix manifest status comparison (aws#6035)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawflau authored and moelasmar committed Oct 22, 2023
1 parent e2411fa commit 30aa526
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 30aa526

Please sign in to comment.