Skip to content

Commit

Permalink
#24 fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
fireflycons committed Jan 14, 2020
1 parent d60befd commit de900d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aws-toolbox/Public/IAM/Set-ATIAMCliExternalCredentials.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function Set-ATIAMCliExternalCredentials
if ($profile)
{
# Decode secure string back to JSON
$ss = ConvertTo-SecureString $pofile.Credential
$ss = ConvertTo-SecureString $profile.Credential
$json = [System.Runtime.InteropServices.Marshal]::PtrToStringAuto(([System.Runtime.InteropServices.Marshal]::SecureStringToBSTR(([System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($ss)))))

# Check credential time
Expand Down Expand Up @@ -100,7 +100,8 @@ function Set-ATIAMCliExternalCredentials
{
$profile.Credential = $encryptedCredential
}
else {
else
{
$profiles += New-Object PSObject -Property @{
Name = $profileName
Credential = $encryptedCredential
Expand Down

0 comments on commit de900d8

Please sign in to comment.