Skip to content

Commit

Permalink
change to ip
Browse files Browse the repository at this point in the history
  • Loading branch information
ddymko committed Nov 19, 2020
1 parent ee837dd commit 49d58cd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions bare_metal_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ func (b *BareMetalServerServiceHandler) ListIPv4s(ctx context.Context, serverID
return nil, nil, err
}

return ipv4.IPv4S, ipv4.Meta, nil
return ipv4.IPv4s, ipv4.Meta, nil
}

// ListIPv6s information of a Bare Metal server.
Expand All @@ -298,7 +298,7 @@ func (b *BareMetalServerServiceHandler) ListIPv6s(ctx context.Context, serverID
return nil, nil, err
}

return ipv6.IPv6S, ipv6.Meta, nil
return ipv6.IPv6s, ipv6.Meta, nil
}

// Halt a Bare Metal server.
Expand Down
4 changes: 2 additions & 2 deletions instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ func (i *InstanceServiceHandler) ListIPv4(ctx context.Context, instanceID string
return nil, nil, err
}

return ips.IPv4S, ips.Meta, nil
return ips.IPv4s, ips.Meta, nil
}

// DeleteIPv4 address from a given instance.
Expand Down Expand Up @@ -639,7 +639,7 @@ func (i *InstanceServiceHandler) ListIPv6(ctx context.Context, instanceID string
return nil, nil, err
}

return ips.IPv6S, ips.Meta, nil
return ips.IPv6s, ips.Meta, nil
}

// CreateReverseIPv6 for a given instance.
Expand Down
4 changes: 2 additions & 2 deletions ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type IPv6 struct {
}

type ipBase struct {
IPv4S []IPv4 `json:"ipv4s,omitempty"`
IPv6S []IPv6 `json:"ipv6s,omitempty"`
IPv4s []IPv4 `json:"ipv4s,omitempty"`
IPv6s []IPv6 `json:"ipv6s,omitempty"`
Meta *Meta `json:"meta"`
}

0 comments on commit 49d58cd

Please sign in to comment.