Skip to content

Commit aac2ab6

Browse files
committed
updating decoder for instances without psc_auto_connection
1 parent 7da3c8b commit aac2ab6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mmv1/templates/terraform/decoders/memorystore_instance.go.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ if !ok {
44
if _, endpointsFound := res["endpoints"]; endpointsFound {
55
return res, nil // For Cluster Disabled instances, we would have 'endpoints' instead of 'pscAutoConnections'
66
}
7-
return nil, fmt.Errorf("pscAutoConnections field not found in API response")
7+
return res, nil
88
}
99

1010
connections, ok := v.([]interface{})

0 commit comments

Comments
 (0)