Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Commit b520251

Browse files
author
Samuel Ortiz
committed
imageservice: Return client.Get() error if any
And be consistent with the Delete() implementation. Signed-off-by: Samuel Ortiz <[email protected]>
1 parent 010cf65 commit b520251

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openstack/imageservice/v2/images/requests.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func Delete(client *gophercloud.ServiceClient, id string) DeleteResult {
202202
// Get implements image get request
203203
func Get(client *gophercloud.ServiceClient, id string) GetResult {
204204
var res GetResult
205-
client.Get(getURL(client, id), &res.Body, nil)
205+
_, res.Err = client.Get(getURL(client, id), &res.Body, nil)
206206
return res
207207
}
208208

0 commit comments

Comments
 (0)