File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 12
12
RootModule = ' AWSLambdaPSCore.psm1'
13
13
14
14
# Version number of this module.
15
- ModuleVersion = ' 4.0.0 .0'
15
+ ModuleVersion = ' 4.0.1 .0'
16
16
17
17
# Supported PSEditions
18
18
CompatiblePSEditions = ' Core'
Original file line number Diff line number Diff line change @@ -194,7 +194,19 @@ function _deployProject
194
194
195
195
$amazonLambdaToolsPath = _configureAmazonLambdaTools
196
196
197
- $env: AWS_EXECUTION_ENV = " AWSLambdaPSCore"
197
+ $moduleVersion = " Unknown"
198
+ $module = $MyInvocation.MyCommand.Module
199
+ if ($module ) {
200
+ $moduleVersion = $module.Version.ToString ()
201
+ }
202
+
203
+ $userAgent = " lib/AWSLambdaPSCore#$moduleVersion "
204
+ if ($env: AWS_EXECUTION_ENV ) {
205
+ $env: AWS_EXECUTION_ENV += " $userAgent "
206
+ } else {
207
+ $env: AWS_EXECUTION_ENV = " AWSLambdaPSCore $userAgent "
208
+ }
209
+
198
210
try
199
211
{
200
212
if ($DisableInteractive )
You can’t perform that action at this time.
0 commit comments