This project is read-only.


Inconsistent return results for Get-HPOV* functions


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 5:48 PM by ChrisLynchHP


ChrisLynchHP wrote Apr 25, 2014 at 8:33 PM

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