Browse Source

Use rackspace's specialized client

`openstack.NewDerivedDriver` sets client to `openstack.GenericClient`
therefore `rackspace.Client` is getting ignored.

`rackspace.Client.Authenticate` has different semantics than
`openstack.GenericClient.Authenticate`, thus almost all operations with
`rackspace` driver fail at the moment.

Signed-off-by: Amir Mohammad Saied <amirsaied@gmail.com>
Amir Mohammad Saied 3 years ago
parent
commit
ace17ece2f
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      drivers/openstack/openstack.go

+ 4
- 0
drivers/openstack/openstack.go View File

@@ -218,6 +218,10 @@ func (d *Driver) GetSSHHostname() (string, error) {
218 218
 	return d.GetIP()
219 219
 }
220 220
 
221
+func (d *Driver) SetClient(client Client) {
222
+	d.client = client
223
+}
224
+
221 225
 func (d *Driver) DriverName() string {
222 226
 	return "openstack"
223 227
 }

Loading…
Cancel
Save