Skip to content

Commit

Permalink
Fix so that get is taking the correct values
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusStorhaug committed Sep 27, 2023
1 parent c8fc991 commit 22d1430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GitHub/public/Config/Get-GitHubConfig.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
)

$prefix = $script:SecretVault.Prefix
$AccessTokenData = Get-SecretInfo -Name "$prefix`RefreshToken"

switch($Name) {
'AccessToken' {
Expand All @@ -36,6 +35,7 @@
$RefreshTokenData.Metadata | ConvertFrom-HashTable | ConvertTo-HashTable | Select-Object -ExpandProperty $Name
}
default {
$AccessTokenData = Get-SecretInfo -Name "$prefix`AccessToken"
$AccessTokenData.Metadata | ConvertFrom-HashTable | ConvertTo-HashTable | Select-Object -ExpandProperty $Name
}
}
Expand Down

0 comments on commit 22d1430

Please sign in to comment.