Skip to content

Commit

Permalink
fix google_os_config_guest_policies imports (#5113) (#3550)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Aug 20, 2021
1 parent e2f4f12 commit 13b5fda
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .changelog/5113.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
os_config: fixed imports for `google_os_config_guest_policies`
```
3 changes: 0 additions & 3 deletions google-beta/resource_os_config_guest_policies.go
Original file line number Diff line number Diff line change
Expand Up @@ -943,9 +943,6 @@ func resourceOSConfigGuestPoliciesCreate(d *schema.ResourceData, meta interface{
if err != nil {
return fmt.Errorf("Error creating GuestPolicies: %s", err)
}
if err := d.Set("name", flattenOSConfigGuestPoliciesName(res["name"], d, config)); err != nil {
return fmt.Errorf(`Error setting computed identity field "name": %s`, err)
}

// Store the ID now
id, err := replaceVars(d, config, "{{name}}")
Expand Down
6 changes: 3 additions & 3 deletions website/docs/r/os_config_guest_policies.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -823,9 +823,9 @@ This resource provides the following
GuestPolicies can be imported using any of these accepted formats:

```
$ terraform import google_os_config_guest_policies.default projects/{{project}}/guestPolicies/{{name}}
$ terraform import google_os_config_guest_policies.default {{project}}/{{name}}
$ terraform import google_os_config_guest_policies.default {{name}}
$ terraform import google_os_config_guest_policies.default projects/{{project}}/guestPolicies/{{guest_policy_id}}
$ terraform import google_os_config_guest_policies.default {{project}}/{{guest_policy_id}}
$ terraform import google_os_config_guest_policies.default {{guest_policy_id}}
```

## User Project Overrides
Expand Down

0 comments on commit 13b5fda

Please sign in to comment.