mirror of
https://github.com/docker/docs.git
synced 2026-11-05 00:14:17 +03:00
Merge pull request #2208 from amir/master
Use rackspace's specialized client
This commit is contained in:
@@ -218,6 +218,10 @@ func (d *Driver) GetSSHHostname() (string, error) {
|
||||
return d.GetIP()
|
||||
}
|
||||
|
||||
func (d *Driver) SetClient(client Client) {
|
||||
d.client = client
|
||||
}
|
||||
|
||||
func (d *Driver) DriverName() string {
|
||||
return "openstack"
|
||||
}
|
||||
|
||||
@@ -87,10 +87,14 @@ func NewDriver(machineName, storePath string) drivers.Driver {
|
||||
}).Debug("Instantiating Rackspace driver.")
|
||||
|
||||
inner := openstack.NewDerivedDriver(machineName, storePath)
|
||||
|
||||
return &Driver{
|
||||
driver := &Driver{
|
||||
Driver: inner,
|
||||
}
|
||||
inner.SetClient(&Client{
|
||||
driver: driver,
|
||||
})
|
||||
|
||||
return driver
|
||||
}
|
||||
|
||||
// DriverName is the user-visible name of this driver.
|
||||
|
||||
Reference in New Issue
Block a user