Skip to content

Commit

Permalink
ID prefix for device on GET (fixes #48)
Browse files Browse the repository at this point in the history
  • Loading branch information
krylovsk committed Jan 12, 2015
1 parent 829c1e1 commit 5e7fcb9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion catalog/device/catalogapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,9 @@ func (self ReadableCatalogAPI) collectionFromDevices(devices []Device, page, per
}

func (self ReadableCatalogAPI) paginatedDeviceFromDevice(d Device, page, perPage int) *PaginatedDevice {
dev := d.ldify(self.apiLocation)
pd := &PaginatedDevice{
&d,
&dev,
make([]Resource, 0, len(d.Resources)),
page,
perPage,
Expand Down

0 comments on commit 5e7fcb9

Please sign in to comment.