HewlettPackard / hpe3par_pstoolkit

The HPE Alletra 9000 and Primera and 3PAR PowerShell Toolkit supports cmdlets, which are wrappers around the native HPE Alletra 9000 or HPE Primera or HPE 3PAR storage CLI commands and Web Services API (WSAPI).
Other
12 stars 13 forks source link

bug in delete host from hostset #33

Open nickdebom opened 4 years ago

nickdebom commented 4 years ago

it seems like when i want to delete a specific host from a hostset, it tries to delete the hostset, which seems not to be good :p.

it deleted the host from the hostset correctly, but returns something weird

updated to the latest version -> still the same problem, opened an SR as well

S C:\PPD\CONF\BIN> $hostset = Get-3parHostSet | Where-Object Members -EQ $3parhosttodelete.Name

PS C:\PPD\CONF\BIN> $hostset

ID Name Members


39 BE_CCM_POC_MA ESX_s2s005aq_POC

PS C:\PPD\CONF\BIN> Remove-3parHostSet $hostset.Name -hostName $hostset.Members FAILURE : no -force option selected to remove hostset

PS C:\PPD\CONF\BIN> Remove-3parHostSet $hostset.Name -hostName $hostset.Members -force FAILURE : While removing hostset BE_CCM_POC_MA

PS C:\PPD\CONF\BIN> $hostset

ID Name Members


39 BE_CCM_POC_MA ESX_s2s005aq_POC

PS C:\PPD\CONF\BIN> $hostset = Get-3parHostSet | Where-Object Members -EQ $3parhosttodelete.Name

PS C:\PPD\CONF\BIN> $hostset