1

Closed

Inconsistent return results for Get-HPOV* functions

description

Different objects have different results if called with a non-existent name. For example,

Get-HPOVEnclosure -name dummy

simply doesn't return anything, while

Get-HPOVProfile -name dummy

not only does a write-error, but it also "break"s, killing the calling pipeline/script/function. On the other hand,

Get-HPOVNetworkSet -name dummy

does a 'write-host "No Network Sets Found" and returns nothing but doesn't throw an error or break the code.

All the Get-HPOV* functions seem to handle lookups of a nonexistent object slightly differently.
Closed Aug 17, 2016 at 4:48 PM by ChrisLynchHP

comments

ChrisLynchHP wrote Apr 25, 2014 at 7:33 PM

Agreed. This is part of a number of optimizations being made to the library. Will be in the next release.