Skip to content

Commit

Permalink
Merge pull request #113 from rynardtspies/issue-112
Browse files Browse the repository at this point in the history
Fix Issue-112 Get-RscType nested fields.
  • Loading branch information
evcheng-rubrik authored Jun 24, 2024
2 parents c64c72e + 9f01bb7 commit 3b09e25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ New Features:
- Get-RscVmwareVm - Added -Relic switch. Use -Relic:$false to filter out Relics. -Relic will return only Relics. No usage of -Relic will return all (default operation). -Name parameter is now position 0, so you don't have to specify -Name.
- Get-RscNutanixVm - New cmdlet to get Nutanix VMs
- Register-RscRubrikBackupService - New cmdlet to register RBS on VMs
- New-RscSla - Now accepts -DailySchedule as a parameter

Fixes:
- Issue [#112](https://github.com/rubrikinc/rubrik-powershell-sdk/issues/112)

Breaking Changes:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,11 +308,11 @@ public static object InitializeTypeWithSelectedProperties(string objectClassName
}
else
{
IList value = (IList)returnInstance.GetType()
IList value = (IList)currentObject?.GetType()?
.GetProperty(requestedPropertyTree[i],
BindingFlags.IgnoreCase |
BindingFlags.Instance |
BindingFlags.Public).GetValue(returnInstance);
BindingFlags.Public)?.GetValue(currentObject);
currentObject = value[0];
}

Expand Down

0 comments on commit 3b09e25

Please sign in to comment.