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
The resource import should complete successfully without any runtime errors.
Environment
ASO Version: v2.11.0
Command Used: asoctl import azure-resource
Resource Details: Azure Role Assignment (specific details redacted)
Azure Environment: Public Azure
Additional Information
The issue appears to be linked to the RoleAssignmentExtension implementation at /workspace/v2/api/authorization/customizations/role_assignment_extensions.go:38.
Similar issues may be occurring in the resource importer at /workspace/v2/cmd/asoctl/pkg/importresources.
The text was updated successfully, but these errors were encountered:
Looks like I assumed a RoleAssignment would never be directly imported, only encountered as a resource extension when importing another resource - this would explain why the code assumes the owner value supplied to Import() is never nil. Should be a straightforward fix - and I'll check other implementations of Import() as well.
Describe the bug
When attempting to import an Azure Role Assignment using
asoctl import azure-resource
, the command results in a panic with the following error:Steps to Reproduce
Observed Behavior
The command fails and produces the following stack trace:
Expected Behavior
The resource import should complete successfully without any runtime errors.
Environment
v2.11.0
asoctl import azure-resource
Additional Information
RoleAssignmentExtension
implementation at/workspace/v2/api/authorization/customizations/role_assignment_extensions.go:38
./workspace/v2/cmd/asoctl/pkg/importresources
.The text was updated successfully, but these errors were encountered: