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

pull/2418/merge
James Phillips 8 years ago committed by GitHub
parent 15d386c0be
commit 4b5f9115b5

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

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

Loading…
Cancel
Save