Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verbose output for Get-Secret is incorrect #200

Open
3 tasks done
joshuabennett-com opened this issue Jul 17, 2022 · 0 comments
Open
3 tasks done

Verbose output for Get-Secret is incorrect #200

joshuabennett-com opened this issue Jul 17, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@joshuabennett-com
Copy link

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues.

Steps to reproduce

Get a secret that doesn't exist.

PS C:\Scripts> Get-Secret -Name 'blalba'
or
PS C:\Scripts> Get-Secret -Name 'blalba' -Vault "impactAutomation"

Expected behavior

Verbose should not report success if the secret doesn't exist.

Actual behavior

VERBOSE: Secret information was successfully retrieved from vault ImpactAutomation.

Error details

VERBOSE: Secret information was successfully retrieved from vault ImpactAutomation.
Get-Secret : The secret blalba was not found.
At line:1 char:1
+ Get-Secret -Name 'blalba'
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Microsoft.Power...etSecretCommand:GetSecretCommand) [Get-Secret], ItemNotFoundException
    + FullyQualifiedErrorId : GetSecretNotFound,Microsoft.PowerShell.SecretManagement.GetSecretCommand

Environment data

Name                           Value
----                           -----
PSVersion                      5.1.19041.1320
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.1320
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Version

None

Visuals

No response

@PaulHigin PaulHigin added the bug Something isn't working label Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants