Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yutpeng committed Apr 8, 2024
1 parent 3d35c54 commit 1f00ad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/oci/client/compute.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func (c *client) GetSecondaryVNICForInstance(ctx context.Context, compartmentID,
if err != nil {
return nil, err
}
if vnic.IsPrimary == nil || *vnic.IsPrimary == false {
if vnic.IsPrimary != nil && *vnic.IsPrimary == false {
return vnic, nil
}
}
Expand Down

0 comments on commit 1f00ad9

Please sign in to comment.