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

Get-SFImageStoreContent throws and does not honor -ErrorAction Ignore #78

Open
K-Cully opened this issue Oct 17, 2019 · 0 comments
Open
Labels
bug Something isn't working

Comments

@K-Cully
Copy link
Member

K-Cully commented Oct 17, 2019

Describe the bug
When calling Get-SFImageStoreContent, if a match is found it is returned to the caller.
If no match is found an exception is thrown, which is probably a bug in itself.
However, the exception is still thrown when -ErrorAction Ignore is passed to the cmdlet causing the calling script to exit.

To Reproduce
Create a script that connects to a cluster, then calls:
$result = Get-SFImageStoreContent -ContentPath "ContentNotThere" -ErrorAction Ignore
then continues processing in the script.

Expected behavior
The script continues executing.

@amanbha amanbha added the bug Something isn't working label Oct 17, 2019
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