isctl icon indicating copy to clipboard operation
isctl copied to clipboard

PANIC error when using names with a space in MoRef

Open baelen-git opened this issue 9 months ago • 0 comments

Code

ClassId: iam.Permission
Name: IMM-Lab-User
---
ClassId: iam.ResourceRoles
Permission: MoRef[IMM-Lab-User]
Resource: MoRef:organization.Organization[IMM-Troubleshooting]
Roles: 
- MoRef[Server Administrator]
- MoRef[UCS Domain Administrator]
- MoRef[Workflow Designer]

Throws this error

panic: runtime error: invalid memory address or nil pointer dereference

But this will work

Roles: 
- MoRef[$filter:Name eq 'Server Administrator']
- MoRef[$filter:Name eq 'UCS Domain Administrator']
- MoRef[$filter:Name eq 'Workflow Designer']

baelen-git avatar May 17 '24 17:05 baelen-git