New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get-HPOVProfile -Name $var returns all profiles when $var is empty #405
Comments
Ah, it appears that the I'll get that fixed in the next 4.20 library update. |
Yeah, it caused is a big headache as a coworker had used it with "Get-HPOVProfile -Name $shortname | Remove-HPOVProfile -Confirm:$false -force". The "-force" and the missing [ValidateNotNullOrEmpty()] caused all profiles on that instance to be now in bad states and we have to delete and redo them all. I told him not to use -force. |
|
That is what I told him.
On Wed, Jun 5, 2019 at 11:30 Chris Lynch ***@***.***> wrote:
-Force should only be used in rare cases where the hardware management
processor (iLO) is not reachable and the profile needs to be removed.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#405>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABI4PJWT6FM2S4WSAH4H4PLPZAA2NANCNFSM4HUBFSPA>
.
--
Ulf Zimmermann, 1525 Pacific Ave., Alameda, CA-94501, #: 510-396-1764
You can find my resume at: http://www.Alameda.net/~ulf/resume.html
|
By the way, thanks for the quick response. This was much better than at us say the HPE OneView support via Datacenter Care ... I dread calling them. |
…gForwarding, Set-HPOVApplianceAuditLogForwarding, Test-HPOVApplianceAuditLogForwarding * Added Consistency Checking parameters to New-HPOVServerProfileTemplate. * Added Set-HPOVRemoteSupportPrimaryContact to change the Remote Support primary or default contact on the appliance. * Added HPE Numble storage support to Add-HPOVStorageSystem, New-HPOVStorageVolumeTemplate, New-HPOVStorageVolume, and New-HPOVServerProfileAttachVolume Cmdlets. * Added Set-HPOVApplianceSnmpV3EngineId to set the appliance SNMPv3 engine id. * Added Synergy VCFC 32Gb module support to New-HPOVLogicalInterconnectGroup. * Enhanced Set-HPOVRemoteSupportSetting to allow enable or disable remote support for the provided resource. * Enhanced Set-HPOVLogicalEnclosure to set a new configuration script for HPE BladeSystem c-Class. * Enahanced New-HPOVServerProfileTemplate with consistency checking overrides, new in HPE OneView 4.20. * [#395] Added Reset-HPOVInterconnectNetOpPassword to reset HPE Synergy Virtual Connect NetOp password. * [#405] Fixed Get-HPOVServerProfile -Name and -InputObject parameters to validate if null or empty. * Fixed New-HPOVServerProfileAttachVolume misandling target ports, and deprecated parameters. * Fixed Update-HPOVServerProfile where -Reapply and specific reapply operations were not processing correctly. * [#411] Fixed Connect-HPOVMgmt not displaying Login Message went set due to API schema change.
This was fixed in Release 4.20.2133.3186 and in PowerShell Gallery. Apologies for the extremely late response to this issue. Please verify before this issue is closed. |
Closing due to no further activity. If you wish, feel free to re-open to discuss further. |
…re when Synergy EBIPA parameters were added. Signed-off-by: Chris Lynch <chris.lynch@hpe.com>
Please fill in as much information as possible to help resolve your issue.
Expected Behavior
When using an option switch like -Name, it should error when no variable or string is provided
Actual Behavior
It returns all profiles
Steps to reproduce
Version Information
HPE OneView PowerShell Library Version (
Get-HPOVVersion
or$PSLibraryVersion
):Output from
$PSVersionTable
on your Windows Host:The text was updated successfully, but these errors were encountered: