From 34d59f37735a27d6aef374c0cb4e38b2c630d647 Mon Sep 17 00:00:00 2001 From: Wing Fung Lau <4760060+hawflau@users.noreply.github.com> Date: Wed, 4 Oct 2023 09:10:36 -0700 Subject: [PATCH] fix manifest status comparison --- samcli/commands/init/init_templates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samcli/commands/init/init_templates.py b/samcli/commands/init/init_templates.py index c11998c543..f2744c8da6 100644 --- a/samcli/commands/init/init_templates.py +++ b/samcli/commands/init/init_templates.py @@ -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.",