From 030a99dc71cc99ebece148ce03d77e5438736c1a Mon Sep 17 00:00:00 2001 From: Hardik Dodiya Date: Mon, 20 Nov 2023 10:27:04 +0000 Subject: [PATCH] Fix MachineID field in the Attach Volume call of orictl --- .../cmd/orictl-machine/orictlmachine/attach/volume/volume.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }