mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
This reverts commit 4d184ef583.
This commit is contained in:
parent
a15101601c
commit
3bcd4e4ca6
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ func NewDeviceClient(addr string, token string, insecureSkipVerify bool, rootCA
|
||||||
|
|
||||||
// ListDevicePolicies fetches all policies for the device with the provided token
|
// ListDevicePolicies fetches all policies for the device with the provided token
|
||||||
func (dc *DeviceClient) ListDevicePolicies() ([]*fleet.HostPolicy, error) {
|
func (dc *DeviceClient) ListDevicePolicies() ([]*fleet.HostPolicy, error) {
|
||||||
verb, path := "GET", "/api/2022-04/fleet/device/"+dc.token+"/policies"
|
verb, path := "GET", "/api/latest/fleet/device/"+dc.token+"/policies"
|
||||||
var responseBody listDevicePoliciesResponse
|
var responseBody listDevicePoliciesResponse
|
||||||
err := dc.request(verb, path, "", &responseBody)
|
err := dc.request(verb, path, "", &responseBody)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue