Skip to content

Commit

Permalink
azuread_group_role_management_policy: fix up resource and data source…
Browse files Browse the repository at this point in the history
…, add expand filter
  • Loading branch information
manicminer committed Sep 27, 2024
1 parent 5c963ef commit 0918f7a
Show file tree
Hide file tree
Showing 3 changed files with 180 additions and 236 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,13 @@ func (r GroupRoleManagementPolicyDataSource) Read() sdk.ResourceFunc {

id := stable.NewPolicyRoleManagementPolicyID(policyId.ID())

policyResp, err := policyClient.GetRoleManagementPolicy(ctx, id, rolemanagementpolicy.DefaultGetRoleManagementPolicyOperationOptions())
policyOptions := rolemanagementpolicy.GetRoleManagementPolicyOperationOptions{
Expand: &odata.Expand{
Relationship: "*",
},
}

policyResp, err := policyClient.GetRoleManagementPolicy(ctx, id, policyOptions)
if err != nil {
return fmt.Errorf("retrieving %s: %v", id, err)
}
Expand Down
Loading

0 comments on commit 0918f7a

Please sign in to comment.