Skip to content

Commit

Permalink
Correct install status for unsupported runtimes
Browse files Browse the repository at this point in the history
  • Loading branch information
TimPansino committed Jan 18, 2024
1 parent 00f436b commit a6b8128
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion newrelic_lambda_cli/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def _add_new_relic(input, config, nr_license_key):
"Unsupported Lambda runtime for '%s': %s"
% (config["Configuration"]["FunctionArn"], runtime)
)
return True
return False

architectures = config["Configuration"].get("Architectures", ["x86_64"])
architecture = architectures[0]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def test_add_new_relic(aws_credentials, mock_function_config):
config,
nr_license_key=None,
)
is True
is False
)

config = mock_function_config("python3.12")
Expand Down

0 comments on commit a6b8128

Please sign in to comment.