diff --git a/orictl-machine/cmd/orictl-machine/orictlmachine/attach/volume/volume.go b/orictl-machine/cmd/orictl-machine/orictlmachine/attach/volume/volume.go index f5283939..cde33487 100644 --- a/orictl-machine/cmd/orictl-machine/orictlmachine/attach/volume/volume.go +++ b/orictl-machine/cmd/orictl-machine/orictlmachine/attach/volume/volume.go @@ -81,7 +81,7 @@ func Run(ctx context.Context, streams clicommon.Streams, client ori.MachineRunti return err } - if _, err := client.AttachVolume(ctx, &ori.AttachVolumeRequest{Volume: volume}); err != nil { + if _, err := client.AttachVolume(ctx, &ori.AttachVolumeRequest{Volume: volume, MachineId: opts.MachineID}); err != nil { return err }