Skip to content

Commit

Permalink
fix db_snapshot data source (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonutessell authored Dec 11, 2024
1 parent 405a768 commit 38bbf30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/client/db_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ func (c *Client) GetDatabaseSnapshots(availabilityMachineId string, name *string
}
q := req.URL.Query()
if !helper.IsNilString(name) {
q.Add("name", fmt.Sprintf("%v", name))
q.Add("name", fmt.Sprintf("%v", *name))
}
if !helper.IsNilBool(manual) {
q.Add("manual", fmt.Sprintf("%v", manual))
q.Add("manual", fmt.Sprintf("%v", *manual))
}
q.Add("page-size", "1000")
req.URL.RawQuery = q.Encode()
Expand Down

0 comments on commit 38bbf30

Please sign in to comment.