Skip to content

Commit

Permalink
add import id parsing option (#2693)
Browse files Browse the repository at this point in the history
Merged PR #2693.
  • Loading branch information
megan07 authored and modular-magician committed Nov 15, 2019
1 parent c0ca820 commit 70a4480
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/terraform
2 changes: 1 addition & 1 deletion build/terraform-beta
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func resourceFolderOrgPolicyImporter(d *schema.ResourceData, meta interface{}) (

if err := parseImportId([]string{
"folders/(?P<folder>[^/]+)/constraints/(?P<constraint>[^/]+)",
"folders/(?P<folder>[^/]+)/(?P<constraint>[^/]+)",
"(?P<folder>[^/]+)/(?P<constraint>[^/]+)"},
d, config); err != nil {
return nil, err
Expand Down

0 comments on commit 70a4480

Please sign in to comment.