Skip to content

Commit 5714cf4

Browse files
authored
resourceIdentity: Identity nil check in import.go (#15371)
1 parent b07247c commit 5714cf4

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

mmv1/third_party/terraform/tpgresource/import.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ func ParseImportId(idRegexes []string, d TerraformResourceData, config *transpor
2626
return fmt.Errorf("Import is not supported. Invalid regex formats.")
2727
}
2828
identity, err := d.Identity()
29-
if err != nil {
30-
return err
29+
if identity == nil {
30+
log.Printf("[DEBUG] identity not set: %s", err)
3131
}
3232
if fieldValues := re.FindStringSubmatch(d.Id()); fieldValues != nil {
3333
log.Printf("[DEBUG] matching ID %s to regex %s.", d.Id(), idFormat)

0 commit comments

Comments
 (0)