Skip to content

Commit d2bc24e

Browse files
Add missing payload
1 parent 66fcd05 commit d2bc24e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/iaasalpha/attach_volume/attach_volume.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ func main() {
2525
os.Exit(1)
2626
}
2727

28-
_, err = iaasalphaClient.AddVolumeToServer(context.Background(), projectId, serverId, volumeId).Execute()
28+
payload := iaasalpha.AddVolumeToServerPayload{}
29+
_, err = iaasalphaClient.AddVolumeToServer(context.Background(), projectId, serverId, volumeId).AddVolumeToServerPayload(payload).Execute()
2930
if err != nil {
3031
fmt.Fprintf(os.Stderr, "[iaasalpha API] Error when calling `AddVolumeToServer`: %v\n", err)
3132
} else {

0 commit comments

Comments
 (0)