1
0
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:
Olivier Gambier
2015-11-06 17:51:29 -08:00
2 changed files with 10 additions and 2 deletions

View File

@@ -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"
}

View File

@@ -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.