From 30aa526085425fcd4fdd76accc0051c9c95ab3a2 Mon Sep 17 00:00:00 2001 From: Wing Fung Lau <4760060+hawflau@users.noreply.github.com> Date: Mon, 16 Oct 2023 10:08:12 -0700 Subject: [PATCH] fix manifest status comparison (#6035) --- 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 c11998c543a..f2744c8da6b 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.",