From 2d43dcfc0cc3a98103d14c529cfc2992bee9bdcf Mon Sep 17 00:00:00 2001 From: James Phillips Date: Thu, 3 Nov 2016 14:21:02 -0700 Subject: [PATCH] Finishes move of datacenter into client vs. options. (#2470) --- command/snapshot_restore.go | 4 +--- command/snapshot_save.go | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) 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 {