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
New-3PARVLun_WSAPI & Get-3PARVLun_WSAPI are not handling LUNID 0 correct #27
The 2 functions New-3PARVLun_WSAPI and Get-3PARVLun_WSAPI are not handling LUNID=0 correctly.
"if ($LUNID)" on line 8067 will always be false for LUNID 0 which prevents creation of LUNID 0 through WSAPI as it doesnt get added into the request. The same is true in function Get-3PARVLun_WSAPI on line 8339.
A better way to handle this would be "if ($LUNID -le 0)"
The 2 functions New-3PARVLun_WSAPI and Get-3PARVLun_WSAPI are not handling LUNID=0 correctly. "if ($LUNID)" on line 8067 will always be false for LUNID 0 which prevents creation of LUNID 0 through WSAPI as it doesnt get added into the request. The same is true in function Get-3PARVLun_WSAPI on line 8339.
A better way to handle this would be "if ($LUNID -le 0)"