Closed jdkarpin closed 2 years ago
Apologies for the late reply here. The main issue is that there is no conditional check if $Baseline
is not empty.
Also, yes, the use of .Clone()
is a bug here. It should instead have been .PSObject.Copy()
.
This is fixed in Release 6.30.3188.1900 and in PowerShell Gallery.
Please verify before this issue is closed.
Closing due to no further activity. If you wish, feel free to re-open to discuss further.
Expected Behavior
Actual Behavior
Steps to reproduce
Bug is in HPEOneView.610.ps1 line 57875 in local function Ger-EnclosureFirmware. If Enclosure have FW Managed then parameter $Baseline is ignored and $BaseLinePolicy is set to $_NoBaselinePolicy.
Also Get-ServerFirmware casts $Baseline to [Object] (line 58534) which cases script to fail (on $Baseline.Clone() which doesn't exist) if correct Baseline is provided.
Version Information
HPE OneView PowerShell Library Version (
Get-HPOVVersion
or$PSLibraryVersion
):HPE OneView Appliance Version (
Get-HPOVVersion -ApplianceVer
):Output from
$PSVersionTable
on your Windows Host: