Skip to content

Commit

Permalink
Finishes move of datacenter into client vs. options. (#2470)
Browse files Browse the repository at this point in the history
  • Loading branch information
slackpad committed Nov 3, 2016
1 parent ed0712a commit 2d43dcf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions command/snapshot_restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion command/snapshot_save.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2d43dcf

Please sign in to comment.