ONTAP Discussions

Bug: Get-Nc* collections does not play well with pipelines

tyteen4a03

For example, if I do something like `$info = Get-NcCifsServer -Controller $controller | Where-Object { $_.Vserver -eq "vserver"} | Select -First 1`, it would output the result in the console, not executing the `Select` or storing the results into `$info`.

 

To work around this, I have had to split the statement into two:

 

$_info = Get-NcCifsServer -Controller $controller

$info = $_info | Where-Object { $_.Vserver -eq "vserver" } | Select -First 1

0 REPLIES 0
Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public