Skip to content

Commit d4949ab

Browse files
authored
Resolve conflicts identity generation (#15305)
1 parent 53b0c9d commit d4949ab

File tree

1 file changed

+2
-0
lines changed
  • mmv1/third_party/terraform/tpgresource

1 file changed

+2
-0
lines changed

mmv1/third_party/terraform/tpgresource/import.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ func identityImport(re *regexp.Regexp, identity *schema.IdentityData, idFormat s
116116
if identityValue, identityExists := identity.GetOk(group); identityExists && group != "" {
117117
log.Printf("[DEBUG] identity Importing %s = %s", group, identityValue)
118118
d.Set(group, identityValue)
119+
} else if group == "" {
120+
continue
119121
} else {
120122
return fmt.Errorf("[DEBUG] No value was found for %s during import", group)
121123
}

0 commit comments

Comments
 (0)