HewlettPackard / POSH-HPEOneView

PowerShell language bindings library for HPE OneView.
http://hewlettpackard.github.io/POSH-HPEOneView/
125 stars 52 forks source link

Remote Support Insight Online error #497

Closed hbxx closed 2 years ago

hbxx commented 4 years ago

when issuing the following command:

 Set-OVRemoteSupport -CompanyName $config.support.company -InsightOnlinePassword $Insight.password -InsightOnlineUsername $Insight.Username -OptimizeOptIn

i receive the following error:

Send-OVRequest : Cannot validate argument on parameter 'body'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.
At C:\Program Files\WindowsPowerShell\Modules\HPEOneView.530\5.30.2472.1534\HPEOneView.530.psm1:24743 char:119
+ ... talRegistraionUri -Method POST -Body $_PortalRestrationObject -Hostna ...
+                                          ~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Send-OVRequest], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Send-OVRequest

it appears the body variable is misspelled (missing 'g'). It should be $_PortalRegsitrationObject

ChrisLynchHPE commented 4 years ago

This will be fixed in the next 5.20 and 5.30 library updates.

ChrisLynchHPE commented 4 years ago

This is fixed in Release 5.30.2515.1313 and in PowerShell Gallery and Release 5.20.2515.1660 and in PowerShell Gallery.

Please verify before this issue is closed.

ChrisLynchHPE commented 2 years ago

Closing due to no further activity. If you wish, feel free to re-open to discuss further.