mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-21 09:33:53 +03:00
F #6756: Fix for Scaleway driver
- Missing files in install.sh - Fix bug in unregister_address_range
This commit is contained in:
parent
450563d408
commit
d546ed3db3
@ -1726,6 +1726,15 @@ IPAM_DRIVER_EQUINIX_SCRIPTS="src/ipamm_mad/remotes/equinix/register_address_rang
|
||||
src/ipamm_mad/remotes/equinix/get_address \
|
||||
src/ipamm_mad/remotes/equinix/free_address"
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# IPAM Scaleway drivers to be installed under $REMOTES_LOCATION/ipam
|
||||
#-------------------------------------------------------------------------------
|
||||
IPAM_DRIVER_SCALEWAY_SCRIPTS="src/ipamm_mad/remotes/scaleway/register_address_range \
|
||||
src/ipamm_mad/remotes/scaleway/unregister_address_range \
|
||||
src/ipamm_mad/remotes/scaleway/allocate_address \
|
||||
src/ipamm_mad/remotes/scaleway/get_address \
|
||||
src/ipamm_mad/remotes/scaleway/free_address"
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# IPAM Vultr drivers to be installed under $REMOTES_LOCATION/ipam
|
||||
#-------------------------------------------------------------------------------
|
||||
|
@ -94,8 +94,8 @@ begin
|
||||
provider = provision.provider
|
||||
connect = provider.body['connection']
|
||||
|
||||
sw_token = connect['token']
|
||||
sw_zone = provider.body['zone']
|
||||
sw_secret_key = connect['secret_key']
|
||||
sw_zone = connect['zone']
|
||||
|
||||
# --------------------------------------------------------------------------
|
||||
# Connect to Scaleway and delete the Flexible IP
|
||||
@ -108,7 +108,7 @@ begin
|
||||
exit(-1)
|
||||
end
|
||||
|
||||
sw = Scaleway.new(sw_token)
|
||||
sw = Scaleway.new(sw_secret_key)
|
||||
resp = sw.api_call("/flexible-ip/v1alpha1/zones/#{sw_zone}/fips/#{scaleway_id}",
|
||||
Net::HTTP::Delete)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user