Adds missing datacenter arg to API client for snapshot commands. (#2466)

This commit is contained in:
James Phillips 2016-11-03 11:01:09 -07:00 committed by GitHub
parent 15d386c0be
commit 4b5f9115b5
2 changed files with 2 additions and 0 deletions

View File

@ -69,6 +69,7 @@ func (c *SnapshotRestoreCommand) Run(args []string) int {
// Create and test the HTTP client // Create and test the HTTP client
conf := api.DefaultConfig() conf := api.DefaultConfig()
conf.Datacenter = *datacenter
conf.Address = *httpAddr conf.Address = *httpAddr
conf.Token = *token conf.Token = *token
client, err := api.NewClient(conf) client, err := api.NewClient(conf)

View File

@ -72,6 +72,7 @@ func (c *SnapshotSaveCommand) Run(args []string) int {
// Create and test the HTTP client // Create and test the HTTP client
conf := api.DefaultConfig() conf := api.DefaultConfig()
conf.Datacenter = *datacenter
conf.Address = *httpAddr conf.Address = *httpAddr
conf.Token = *token conf.Token = *token
client, err := api.NewClient(conf) client, err := api.NewClient(conf)