Skip to content
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

Update-OVServerFirmware Typo in Line 47981 #651

Closed
CermakPOI opened this issue Sep 22, 2023 · 1 comment
Closed

Update-OVServerFirmware Typo in Line 47981 #651

CermakPOI opened this issue Sep 22, 2023 · 1 comment
Assignees

Comments

@CermakPOI
Copy link

CermakPOI commented Sep 22, 2023

There is a Variable Name Error in the function Update-OVServerFirmware in Line 47981

The Alias of $InputObject ( $Server) is used here, but this cannot work since alias-Variable Names are not-back-directed to the real Parrameter. So any method on $Server (in this case split) must fail.

When i correct this Line my Firmware Update starts.

Expected Behavior

                    $_ServerBaseID = **$InputObject.**romVersion.Split(" ")[0]

Actual Behavior

                    $_ServerBaseID = **$Server**.romVersion.Split(" ")[0]

Steps to reproduce

Try To call the function Update-OVServerFirmware with all the needed parameters.

System.Management.Automation.RuntimeException: You cannot call a method on a null-valued expression. at Update-OVServerFirmware<Process>, C:\Program Files\WindowsPowerShell\Modules\HPEOneView.830\8.30.3534.1611\HPEOneView.830.psm1: line 47981

Version Information

HPE OneView PowerShell Library Version:
8.30.3534.1611

# Output from $PSVersionTable
@ChrisLynchHPE
Copy link
Member

ChrisLynchHPE commented Sep 22, 2023

This is a duplicate of #642, which the fix will be tracked with. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants