Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Skip functions/layers pointing to S3 location in providers #2756

Merged
merged 12 commits into from
Mar 30, 2021
Prev Previous commit
Next Next commit
Fix grammar issues
  • Loading branch information
aahung committed Mar 24, 2021
commit 67c61f9458f6f639faaa3b25df080447c4194e2c
6 changes: 3 additions & 3 deletions samcli/lib/providers/sam_function_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def _build_function_configuration(
metadata = resource_properties.get("Metadata", None)
if metadata and "DockerContext" in metadata and not use_raw_codeuri:
LOG.debug(
"--base-dir is presented not, adjusting uri %s relative to %s",
"--base-dir is not presented, adjusting uri %s relative to %s",
metadata["DockerContext"],
stack.location,
)
Expand All @@ -307,7 +307,7 @@ def _build_function_configuration(
)

if codeuri and not use_raw_codeuri:
LOG.debug("--base-dir is presented not, adjusting uri %s relative to %s", codeuri, stack.location)
LOG.debug("--base-dir is not presented, adjusting uri %s relative to %s", codeuri, stack.location)
codeuri = SamLocalStackProvider.normalize_resource_path(stack.location, codeuri)

return Function(
Expand Down Expand Up @@ -429,7 +429,7 @@ def _locate_layer_from_ref(
codeuri = SamBaseProvider._extract_codeuri(layer_properties, code_property_key)

if codeuri and not use_raw_codeuri:
LOG.debug("--base-dir is presented not, adjusting uri %s relative to %s", codeuri, stack.location)
LOG.debug("--base-dir is not presented, adjusting uri %s relative to %s", codeuri, stack.location)
codeuri = SamLocalStackProvider.normalize_resource_path(stack.location, codeuri)

return LayerVersion(
Expand Down