Skip to content

Commit 58c826c

Browse files
committed
Make sure we can list volumes for a specific vm
Without this option we only get volumes that have some special setting.
1 parent 4e9febc commit 58c826c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

volume.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ func (c CloudstackClient) ListVolumes(vmid string) (ListVolumesResponse, error)
99
var resp ListVolumesResponse
1010
params := url.Values{}
1111
params.Set("virtualmachineid", vmid)
12+
params.Set("listall", "true")
1213
response, err := NewRequest(c, "listVolumes", params)
1314
if err != nil {
1415
return resp, err

0 commit comments

Comments
 (0)