Skip to content
This repository was archived by the owner on Jun 23, 2020. It is now read-only.

Commit cf71773

Browse files
committed
Fix SDK port pointer error
1 parent 2a5c401 commit cf71773

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/oci/client/oci.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ func (c *client) getAllSubnetsForVNC() (*[]core.Subnet, error) {
187187
return nil, err
188188
}
189189
subnets := r.Items
190-
log.Printf("Subnets:%#v", subnets)
190+
191191
subnetList = append(subnetList, subnets...)
192192
if page = r.OpcNextPage; r.OpcNextPage == nil {
193193
break
@@ -198,7 +198,7 @@ func (c *client) getAllSubnetsForVNC() (*[]core.Subnet, error) {
198198

199199
func (c *client) isVnicAttachmentInSubnets(vnicAttachment *core.VnicAttachment, subnets *[]core.Subnet) bool {
200200
for _, subnet := range *subnets {
201-
if vnicAttachment.SubnetId == subnet.Id {
201+
if *vnicAttachment.SubnetId == *subnet.Id {
202202
return true
203203
}
204204
}

0 commit comments

Comments
 (0)