newrelic-lambda-cli 0.9.6__py2.py3-none-any.whl → 0.9.7__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -105,8 +105,7 @@ def register(group):
105
105
  )
106
106
  @click.option(
107
107
  "--esm",
108
- default=False,
109
- show_default=True,
108
+ is_flag=True,
110
109
  help="Nodejs runtimes only - nodejs implementation runtime handler to /opt/nodejs/node_modules/newrelic-esm-lambda-wrapper/index.handler",
111
110
  )
112
111
  @click.pass_context
@@ -104,7 +104,7 @@ def _add_new_relic(input, config, nr_license_key):
104
104
  prefix = (
105
105
  "/opt/nodejs/node_modules/newrelic-esm-lambda-wrapper/index"
106
106
  if input.esm
107
- else "newrelic_lambda_wrapper"
107
+ else "newrelic-lambda-wrapper"
108
108
  )
109
109
  runtime_handler = prefix + ".handler"
110
110
 
@@ -172,7 +172,18 @@ def _add_new_relic(input, config, nr_license_key):
172
172
 
173
173
  # Update the NEW_RELIC_LAMBDA_HANDLER envvars only when it's a new install.
174
174
  if runtime_handler and handler != runtime_handler:
175
- update_kwargs["Environment"]["Variables"]["NEW_RELIC_LAMBDA_HANDLER"] = handler
175
+ if "nodejs" in runtime:
176
+ if handler not in [
177
+ "newrelic-lambda-wrapper.handler",
178
+ "/opt/nodejs/node_modules/newrelic-esm-lambda-wrapper/index.handler",
179
+ ]:
180
+ update_kwargs["Environment"]["Variables"][
181
+ "NEW_RELIC_LAMBDA_HANDLER"
182
+ ] = handler
183
+ else:
184
+ update_kwargs["Environment"]["Variables"][
185
+ "NEW_RELIC_LAMBDA_HANDLER"
186
+ ] = handler
176
187
 
177
188
  if input.enable_extension and not utils.supports_lambda_extension(runtime):
178
189
  warning(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: newrelic-lambda-cli
3
- Version: 0.9.6
3
+ Version: 0.9.7
4
4
  Summary: A CLI to install the New Relic AWS Lambda integration and layers.
5
5
  Home-page: https://github.com/newrelic/newrelic-lambda-cli
6
6
  Author: New Relic
@@ -3,7 +3,7 @@ newrelic_lambda_cli/api.py,sha256=b75XwylRhW9pcA6aZ9EjBW1yIFOGHhhULDD5hNhMyes,15
3
3
  newrelic_lambda_cli/cliutils.py,sha256=XDtvTlgbf2uVg01yCJrfJmmgxbF0nIL9x58ETyvefk8,685
4
4
  newrelic_lambda_cli/functions.py,sha256=p57ZUw424BaSUA_Gw8DrYsJOYKROEHEaXgARadqwcP0,2800
5
5
  newrelic_lambda_cli/integrations.py,sha256=r0gxfEqVHTGu3xbr4dOCDwm0-Yhoz3KntfeQRWvoWrQ,31266
6
- newrelic_lambda_cli/layers.py,sha256=gH7-xRcistsk0GNlgC8VkN1yzz8UDm7g_CRFvUgsg1g,15049
6
+ newrelic_lambda_cli/layers.py,sha256=0Kiwx8h_sHcKAxSuwVCWbplAoE4jGiYXcHbS6xmLzP4,15447
7
7
  newrelic_lambda_cli/otel_ingestions.py,sha256=vi1Mlfc9nRvRWV7STwK7fDXZGozG8ufKohmpHcaWGic,9250
8
8
  newrelic_lambda_cli/permissions.py,sha256=H7v5IMpKaJIWC4Dff2YcTis4BKAAFIJr9IHWUj1LnF4,9093
9
9
  newrelic_lambda_cli/subscriptions.py,sha256=-BYkltqiDLdmhUB_Ot4w-5vvrKcQC6aHcTBLl1mlUlI,9564
@@ -13,15 +13,15 @@ newrelic_lambda_cli/cli/__init__.py,sha256=FciF2RVqQbpMKqEiN8qjO6qmdLB6Yv8LyyyPY
13
13
  newrelic_lambda_cli/cli/decorators.py,sha256=a3agkVfy8omkUSL4aKblwSX95xtxYOGASULDYcJDPHk,1786
14
14
  newrelic_lambda_cli/cli/functions.py,sha256=RSh2Cowe1_oQup8q5YRidp03z-BITo2uzvDh4zvLr4I,2601
15
15
  newrelic_lambda_cli/cli/integrations.py,sha256=aQAWcCCU2kBmbF8fLKwKB9bzSY0uipvnojajjTkhqEs,10461
16
- newrelic_lambda_cli/cli/layers.py,sha256=sfAoruTDLxWHJoTp9i5A-sz5Lss2vdjJq1qKt5kKIds,6395
16
+ newrelic_lambda_cli/cli/layers.py,sha256=O9QPutKfdMrDV9xk-IvF25hWdGJY7yFQA-6b3WbBWx8,6371
17
17
  newrelic_lambda_cli/cli/otel_ingestions.py,sha256=4rTm9iYUo2qdMeqxJSrYLCA6ZXHy5bJnjDn9x54pCYc,6096
18
18
  newrelic_lambda_cli/cli/subscriptions.py,sha256=bUupv5iv3mUkC8t31nnI3BahoKxDnUJ8Rgq4QHJcFNU,5890
19
19
  newrelic_lambda_cli/templates/import-template.yaml,sha256=0r1yeoqpnqtEMggWomALkPG10NiANPWWBqz03rChch8,3771
20
20
  newrelic_lambda_cli/templates/license-key-secret.yaml,sha256=ZldQaLXsyF1K2I4X_AsLdH7kRmLkPUYI3talmhqQyHg,1849
21
21
  newrelic_lambda_cli/templates/nr-lambda-integration-role.yaml,sha256=s7T73B_k-mAwgzJrD2xn8YGUNgn2E1V7Exifrl81ViU,2874
22
- newrelic_lambda_cli-0.9.6.dist-info/licenses/LICENSE,sha256=uuxDzQm0yfq_tNZX0tQYzsZUVRIF0jm3dBLZUojSYzI,11345
23
- newrelic_lambda_cli-0.9.6.dist-info/METADATA,sha256=-Om63qSLIoGcrpi5y5nJWJ9cL2RyQfOpwF_lGsKxnE8,27333
24
- newrelic_lambda_cli-0.9.6.dist-info/WHEEL,sha256=oSJJyWjO7Z2XSScFQUpXG1HL-N0sFMqqeKVVbZTPkWc,109
25
- newrelic_lambda_cli-0.9.6.dist-info/entry_points.txt,sha256=iks2k9Y4WNgIecsDzreIvMV9pGCjwwKTf33LKKvl2A8,65
26
- newrelic_lambda_cli-0.9.6.dist-info/top_level.txt,sha256=dxX2w58VgSUFiPD8C_lFuY-T2C1kjfeY0xi8iTh0r44,20
27
- newrelic_lambda_cli-0.9.6.dist-info/RECORD,,
22
+ newrelic_lambda_cli-0.9.7.dist-info/licenses/LICENSE,sha256=uuxDzQm0yfq_tNZX0tQYzsZUVRIF0jm3dBLZUojSYzI,11345
23
+ newrelic_lambda_cli-0.9.7.dist-info/METADATA,sha256=dVHarIKajyveA4EnJ-SWZWltzYsCpeUvqmiBexxrUkQ,27333
24
+ newrelic_lambda_cli-0.9.7.dist-info/WHEEL,sha256=_z0Kb-VmhLeNt2nZ-PsoQBjD25rP0tBwgAyRYD7oTKI,109
25
+ newrelic_lambda_cli-0.9.7.dist-info/entry_points.txt,sha256=iks2k9Y4WNgIecsDzreIvMV9pGCjwwKTf33LKKvl2A8,65
26
+ newrelic_lambda_cli-0.9.7.dist-info/top_level.txt,sha256=dxX2w58VgSUFiPD8C_lFuY-T2C1kjfeY0xi8iTh0r44,20
27
+ newrelic_lambda_cli-0.9.7.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.3.1)
2
+ Generator: setuptools (80.7.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py2-none-any
5
5
  Tag: py3-none-any