Skip to content

Commit

Permalink
Import validation for azuread_role_eligibility_schedule_request
Browse files Browse the repository at this point in the history
  • Loading branch information
manicminer committed Sep 22, 2023
1 parent 15bcd3c commit a1181cb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ func directoryRoleEligibilityScheduleRequestResource() *schema.Resource {
},

Importer: tf.ValidateResourceIDPriorToImport(func(id string) error {
if id == "" {
return errors.New("id was empty")
if _, err := uuid.ParseUUID(id); err != nil {

Check failure on line 35 in internal/services/directoryroles/directory_role_eligibility_schedule_request_resource.go

View workflow job for this annotation

GitHub Actions / golint

undeclared name: `uuid` (typecheck)

Check failure on line 35 in internal/services/directoryroles/directory_role_eligibility_schedule_request_resource.go

View workflow job for this annotation

GitHub Actions / test

undefined: uuid

Check failure on line 35 in internal/services/directoryroles/directory_role_eligibility_schedule_request_resource.go

View workflow job for this annotation

GitHub Actions / tflint

undeclared name: uuid

Check failure on line 35 in internal/services/directoryroles/directory_role_eligibility_schedule_request_resource.go

View workflow job for this annotation

GitHub Actions / compatibility-32bit-test

undefined: uuid
return fmt.Errorf("specified ID (%q) is not valid: %s", id, err)

Check failure on line 36 in internal/services/directoryroles/directory_role_eligibility_schedule_request_resource.go

View workflow job for this annotation

GitHub Actions / golint

undeclared name: `fmt` (typecheck)

Check failure on line 36 in internal/services/directoryroles/directory_role_eligibility_schedule_request_resource.go

View workflow job for this annotation

GitHub Actions / test

undefined: fmt

Check failure on line 36 in internal/services/directoryroles/directory_role_eligibility_schedule_request_resource.go

View workflow job for this annotation

GitHub Actions / tflint

undeclared name: fmt

Check failure on line 36 in internal/services/directoryroles/directory_role_eligibility_schedule_request_resource.go

View workflow job for this annotation

GitHub Actions / compatibility-32bit-test

undefined: fmt
}
return nil
}),
Expand Down

0 comments on commit a1181cb

Please sign in to comment.