You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In certain conditions on AOS 6.5.3, Licensing in the API reflects starter and not fully licensed.
This causes the script to fail with error "You cannot call a method on a none valued expression" when processing Licensing region beginning at line 425 of Invoke-AsBuiltRreport.Nutanix.PrismElement.ps1.
The specific failure is when ($NtnxLicense.category).Replace('_',' ') is called on line 433 as the object is null and has no methods
To Reproduce
Steps to reproduce the behavior:
Validate AOS version is 6.5.3
In Prism check licensing, if starter license is installed even if Pro is also installed this will trigger the API bug
Run New-AsBuiltReport for Nutanix with -Verbose
See error
Expected behavior
The script looks for information in the object retrieved from the API called licenseDTO. In the fault condition this is null and information is in a different object called licenseInfoDTO which has a different structure.
Desktop (please complete the following information):
OS: Windows Server 2019
Powershell
Version 5.1 and 7
Additional context
This was tested against AOS 6.5.7 on another cluster and the script ran without issue.
Commenting out lines 425 to 483 in Invoke-AsBuiltRreport.Nutanix.PrismElement.ps1. is a work around to let the script continue to run.
The text was updated successfully, but these errors were encountered:
Hello
Sorry for the delay..
Perfect.. it's ok now with your workaround
Thanks a lot
These scripts are perfect... honestly.. for Nutanix and VMWare of course... it's a dream
PS : For Nutanix, nothing about the "Data-at-Rest Encryption" @storage level.. possible to add something ? :-)
And nothing about Nutanix Files and the "shares"
For Nutanix, nothing about the "Data-at-Rest Encryption" @storage level.. possible to add something ? :-)
And nothing about Nutanix Files and the "shares"
I no longer actively work with Nutanix infrastructure so further development of this module is unlikely unless someone is able to takeover.
Additional context This was tested against AOS 6.5.7 on another cluster and the script ran without issue. Commenting out lines 425 to 483 in Invoke-AsBuiltRreport.Nutanix.PrismElement.ps1. is a workaround to let the script continue to run.
Describe the bug
In certain conditions on AOS 6.5.3, Licensing in the API reflects starter and not fully licensed.
This causes the script to fail with error "You cannot call a method on a none valued expression" when processing Licensing region beginning at line 425 of Invoke-AsBuiltRreport.Nutanix.PrismElement.ps1.
The specific failure is when ($NtnxLicense.category).Replace('_',' ') is called on line 433 as the object is null and has no methods
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The script looks for information in the object retrieved from the API called licenseDTO. In the fault condition this is null and information is in a different object called licenseInfoDTO which has a different structure.
Screenshots!
image
Desktop (please complete the following information):
Additional context
This was tested against AOS 6.5.7 on another cluster and the script ran without issue.
Commenting out lines 425 to 483 in Invoke-AsBuiltRreport.Nutanix.PrismElement.ps1. is a work around to let the script continue to run.
The text was updated successfully, but these errors were encountered: