Skip to content

Commit

Permalink
Fixes restore to a different target
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisjbell committed Jul 18, 2018
1 parent 4170656 commit 7699af0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions ci/release_notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Bug Fixes

* Manual restore to a different target (via CLI) properly targets specified
target.
5 changes: 2 additions & 3 deletions client/v2/shield/archives.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ func (c *Client) RestoreArchive(parent *Tenant, a *Archive, t *Target) (*Task, e
filter.Target = t.UUID
}

u := qs.Generate(filter).Encode()
return &out, c.post(fmt.Sprintf("/v2/tenants/%s/archives/%s/restore?%s",
parent.UUID, a.UUID, u), nil, &out)
return &out, c.post(fmt.Sprintf("/v2/tenants/%s/archives/%s/restore",
parent.UUID, a.UUID), filter, &out)
}

0 comments on commit 7699af0

Please sign in to comment.