diff --git a/dep/profile.go b/dep/profile.go index 0831cc17..485d62fe 100644 --- a/dep/profile.go +++ b/dep/profile.go @@ -79,7 +79,9 @@ func (c *Client) FetchProfile(uuid string) (*Profile, error) { } func (c *Client) RemoveProfile(serials ...string) (map[string]string, error) { - var response map[string]string + var response struct { + Devices map[string]string `json:"devices"` + } var request = struct { Devices []string `json:"devices"` }{Devices: serials} @@ -89,5 +91,5 @@ func (c *Client) RemoveProfile(serials ...string) (map[string]string, error) { return nil, errors.Wrap(err, "create fetch profile request") } err = c.do(req, &response) - return response, errors.Wrap(err, "remove profile") + return response.Devices, errors.Wrap(err, "remove profile") }