diff --git a/.changelog/9464.txt b/.changelog/9464.txt new file mode 100644 index 00000000000..8fd960358ee --- /dev/null +++ b/.changelog/9464.txt @@ -0,0 +1,3 @@ +```release-note:bug +resourcemanager: made `data_source_google_project_service` no longer return an error when service is not enabled +``` diff --git a/google/services/resourcemanager/data_source_google_project_service.go b/google/services/resourcemanager/data_source_google_project_service.go index 99bfa6c929a..f053aac54d9 100644 --- a/google/services/resourcemanager/data_source_google_project_service.go +++ b/google/services/resourcemanager/data_source_google_project_service.go @@ -30,13 +30,5 @@ func dataSourceGoogleProjectServiceRead(d *schema.ResourceData, meta interface{} return fmt.Errorf("Error constructing id: %s", err) } d.SetId(id) - err = resourceGoogleProjectServiceRead(d, meta) - if err != nil { - return err - } - - if d.Id() == "" { - return fmt.Errorf("%s not found", id) - } - return nil + return resourceGoogleProjectServiceRead(d, meta) }