Skip to content

Commit

Permalink
Merge pull request #33 from selectel/fix_floating_ips_path
Browse files Browse the repository at this point in the history
Fix floating IPs API path
  • Loading branch information
Rey-Lane authored Mar 12, 2024
2 parents 137f386 + b17bcb8 commit 9b23a64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions floating_ips.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const FloatingIPsURI = "/floating-ips"
// CreateFloatingIP creates FloatingIP for provided instance of an existing datastore.
func (api *API) CreateFloatingIP(ctx context.Context, opts FloatingIPsOpts) error {
floatingIPsOpts := struct {
FloatingIP FloatingIPsOpts `json:"floating-ip"`
FloatingIP FloatingIPsOpts `json:"floating_ip"`
}{
FloatingIP: opts,
}
Expand All @@ -38,7 +38,7 @@ func (api *API) CreateFloatingIP(ctx context.Context, opts FloatingIPsOpts) erro
// DeleteFloatingIP deletes FloatingIP from provided instance of an existing datastore.
func (api *API) DeleteFloatingIP(ctx context.Context, opts FloatingIPsOpts) error {
floatingIPsOpts := struct {
FloatingIP FloatingIPsOpts `json:"floating-ip"`
FloatingIP FloatingIPsOpts `json:"floating_ip"`
}{
FloatingIP: opts,
}
Expand Down

0 comments on commit 9b23a64

Please sign in to comment.