diff --git a/command/snapshot_restore.go b/command/snapshot_restore.go index 35ae274467..7ca8ff6655 100644 --- a/command/snapshot_restore.go +++ b/command/snapshot_restore.go @@ -87,9 +87,7 @@ func (c *SnapshotRestoreCommand) Run(args []string) int { defer f.Close() // Restore the snapshot. - err = client.Snapshot().Restore(&api.WriteOptions{ - Datacenter: *datacenter, - }, f) + err = client.Snapshot().Restore(nil, f) if err != nil { c.Ui.Error(fmt.Sprintf("Error restoring snapshot: %s", err)) return 1 diff --git a/command/snapshot_save.go b/command/snapshot_save.go index 5e4dbb4278..cd970ac057 100644 --- a/command/snapshot_save.go +++ b/command/snapshot_save.go @@ -83,7 +83,6 @@ func (c *SnapshotSaveCommand) Run(args []string) int { // Take the snapshot. snap, qm, err := client.Snapshot().Save(&api.QueryOptions{ - Datacenter: *datacenter, AllowStale: *stale, }) if err != nil {