Skip to content

Commit

Permalink
fix: correct emitted data type
Browse files Browse the repository at this point in the history
  • Loading branch information
ddlees committed Sep 28, 2022
1 parent a00e2f8 commit dcbf0fc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 17 deletions.
8 changes: 3 additions & 5 deletions cmd/list-automation-account-role-assignments.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,9 @@ func listAutomationAccountRoleAssignments(ctx context.Context, client client.Azu
automationAccountRoleAssignments.RoleAssignments = append(automationAccountRoleAssignments.RoleAssignments, automationAccountRoleAssignment)
}
}
out <- []AzureWrapper{
{
Kind: enums.KindAZAutomationAccountRoleAssignment,
Data: automationAccountRoleAssignments,
},
out <- AzureWrapper{
Kind: enums.KindAZAutomationAccountRoleAssignment,
Data: automationAccountRoleAssignments,
}
log.V(1).Info("finished listing automation account role assignments", "automationAccountId", id, "count", count)
}
Expand Down
8 changes: 3 additions & 5 deletions cmd/list-function-app-role-assignments.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,9 @@ func listFunctionAppRoleAssignments(ctx context.Context, client client.AzureClie
functionAppRoleAssignments.RoleAssignments = append(functionAppRoleAssignments.RoleAssignments, functionAppRoleAssignment)
}
}
out <- []AzureWrapper{
{
Kind: enums.KindAZFunctionAppRoleAssignment,
Data: functionAppRoleAssignments,
},
out <- AzureWrapper{
Kind: enums.KindAZFunctionAppRoleAssignment,
Data: functionAppRoleAssignments,
}
log.V(1).Info("finished listing function app role assignments", "functionAppId", id, "count", count)
}
Expand Down
8 changes: 3 additions & 5 deletions cmd/list-storage-account-role-assignments.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,9 @@ func listStorageAccountRoleAssignments(ctx context.Context, client client.AzureC
storageAccountRoleAssignments.RoleAssignments = append(storageAccountRoleAssignments.RoleAssignments, storageAccountRoleAssignment)
}
}
out <- []AzureWrapper{
{
Kind: enums.KindAZStorageAccountRoleAssignment,
Data: storageAccountRoleAssignments,
},
out <- AzureWrapper{
Kind: enums.KindAZStorageAccountRoleAssignment,
Data: storageAccountRoleAssignments,
}
log.V(1).Info("finished listing storage account role assignments", "storageAccountId", id, "count", count)
}
Expand Down
3 changes: 1 addition & 2 deletions cmd/list-workflow-role-assignments.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,9 @@ func listWorkflowRoleAsignments(ctx context.Context, client client.AzureClient,
workflowRoleAssignments.RoleAssignments = append(workflowRoleAssignments.RoleAssignments, workflowRoleAssignment)
}
}
out <- []AzureWrapper{{
out <- AzureWrapper{
Kind: enums.KindAZWorkflowRoleAssignment,
Data: workflowRoleAssignments,
},
}
log.V(1).Info("finished listing workflow role assignments", "workflowId", id, "count", count)
}
Expand Down

0 comments on commit dcbf0fc

Please sign in to comment.