Skip to content

Commit

Permalink
Merge pull request #4981 from modular-magician/codegen-pr-2744
Browse files Browse the repository at this point in the history
Allow for import format of only numbers in iam folder
  • Loading branch information
slevenick authored Nov 22, 2019
2 parents 158c6ed + ab55cfb commit 844ac58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions google/iam_folder.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ func NewFolderIamUpdater(d *schema.ResourceData, config *Config) (ResourceIamUpd
}

func FolderIdParseFunc(d *schema.ResourceData, _ *Config) error {
if !strings.HasPrefix(d.Id(), "folders/") {
d.SetId(fmt.Sprintf("folders/%s", d.Id()))
}
d.Set("folder", d.Id())
return nil
}
Expand Down

0 comments on commit 844ac58

Please sign in to comment.