Skip to content

Commit 9525f12

Browse files
disable retry on 404 for getVnic request
1 parent 0c06b19 commit 9525f12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oci/core_instance_resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1939,7 +1939,7 @@ func (s *CoreInstanceResourceCrud) getPrimaryVnic() (*oci_core.Vnic, error) {
19391939
request := oci_core.GetVnicRequest{
19401940
VnicId: attachment.VnicId,
19411941
RequestMetadata: common.RequestMetadata{
1942-
RetryPolicy: getRetryPolicy(s.DisableNotFoundRetries, "core"),
1942+
RetryPolicy: getRetryPolicy(true, "core"),
19431943
},
19441944
}
19451945
response, _ := s.VirtualNetworkClient.GetVnic(context.Background(), request)

0 commit comments

Comments
 (0)