diff --git a/command/snapshot_restore.go b/command/snapshot_restore.go index a4b08288ee..35ae274467 100644 --- a/command/snapshot_restore.go +++ b/command/snapshot_restore.go @@ -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) diff --git a/command/snapshot_save.go b/command/snapshot_save.go index 5efa513117..5e4dbb4278 100644 --- a/command/snapshot_save.go +++ b/command/snapshot_save.go @@ -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)