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 109cdc48e0
commit 3d8f6ef1a0
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
conf := api.DefaultConfig()
conf.Datacenter = *datacenter
conf.Address = *httpAddr
conf.Token = *token
client, err := api.NewClient(conf)

View File

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