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>
This commit is contained in:
Amir Mohammad Saied 2015-11-06 18:16:15 +00:00
parent b50d6187d5
commit ace17ece2f
1 changed files with 4 additions and 0 deletions

View File

@ -218,6 +218,10 @@ func (d *Driver) GetSSHHostname() (string, error) {
return d.GetIP() return d.GetIP()
} }
func (d *Driver) SetClient(client Client) {
d.client = client
}
func (d *Driver) DriverName() string { func (d *Driver) DriverName() string {
return "openstack" return "openstack"
} }