Skip to content

Commit

Permalink
Revert project service data source to pre-5.0.0 (#9464) (#16525)
Browse files Browse the repository at this point in the history
[upstream:721f059649d374ae4a4fac3c1956eab8a5815545]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Nov 13, 2023
1 parent 2cf3bc8 commit 25ee7b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .changelog/9464.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resourcemanager: made `data_source_google_project_service` no longer return an error when service is not enabled
```
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 25ee7b5

Please sign in to comment.