File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/functions/public/Auth Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 158158 Write-Verbose " Found [$ ( $selectedInstallations.Count ) ] installations for the target."
159159 $moduleName = $script :Module.Name
160160 $moduleVersion = $script :PSModuleInfo.ModuleVersion
161- $contextParamList = , @ ()
162- $contextParamList += $selectedInstallations | ForEach-Object - ThrottleLimit $ThrottleLimit - Parallel {
161+ $contextParamList = $selectedInstallations | ForEach-Object - ThrottleLimit $ThrottleLimit - Parallel {
163162 Import-Module - Name $using :moduleName - RequiredVersion $using :moduleVersion - Force - ErrorAction Stop
164163 $installation = $_
165164 Write-Verbose " Processing installation [$ ( $installation.Target.Name ) ] [$ ( $installation.id ) ]"
197196 $contextParams [' Enterprise' ] = [string ]$installation.Target.Name
198197 }
199198 }
200- $contextParams
199+ [ pscustomobject ] $contextParams
201200 }
202201 $contextObjects.AddRange ($contextParamList )
203202 $null = $selectedInstallations.Clear ()
207206 foreach ($contextParams in $contextObjects ) {
208207 Write-Verbose ' Logging in using a managed installation access token...'
209208 $contextParams | Format-Table | Out-String - Stream | ForEach-Object { Write-Verbose $_ }
210- $contextObj = [GitHubAppInstallationContext ]::new((Set-GitHubContext - Context $contextParams.Clone () - PassThru - Default:$Default ))
209+ $contextObj = [GitHubAppInstallationContext ]::new((Set-GitHubContext - Context $contextParams - PassThru - Default:$Default ))
211210 $contextObj | Format-List | Out-String - Stream | ForEach-Object { Write-Verbose $_ }
212211 if (-not $Silent ) {
213212 $name = $contextObj.Name
You can’t perform that action at this time.
0 commit comments