Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
manicminer committed Apr 27, 2023
1 parent 9776e1a commit c4af184
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/data-sources/access_package_catalog_role.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ data "azuread_access_package_catalog_role" "example" {
*Look up by object ID*
```terraform
data "azuread_access_package_catalog_role" "example" {
object_id = "ae79f266-94d4-4dab-b730-feca7e132178"
object_id = "00000000-0000-0000-0000-000000000000"
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func accessPackageCatalogRoleAssignmentResource() *schema.Resource {
return &schema.Resource{
CreateContext: accessPackageCatalogRoleAssignmentResourceCreate,
ReadContext: accessPackageCatalogRoleAssignmentResourceRead,
DeleteContext: accessPackageCatalogRoleRoleAssignmentResourceDelete,
DeleteContext: accessPackageCatalogRoleAssignmentResourceDelete,

Timeouts: &schema.ResourceTimeout{
Create: schema.DefaultTimeout(5 * time.Minute),
Expand Down Expand Up @@ -117,7 +117,7 @@ func accessPackageCatalogRoleAssignmentResourceRead(ctx context.Context, d *sche
return nil
}

func accessPackageCatalogRoleRoleAssignmentResourceDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
func accessPackageCatalogRoleAssignmentResourceDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
client := meta.(*clients.Client).IdentityGovernance.AccessPackageCatalogRoleAssignmentsClient

if _, err := client.Delete(ctx, d.Id()); err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func TestAccAccessPackageCatalogRoleAssignmentResource_basic(t *testing.T) {
check.That(data.ResourceName).Key("role_id").Exists(),
),
},
data.ImportStep(),
})
}

Expand Down

0 comments on commit c4af184

Please sign in to comment.