From ea255037050d67877a1f2de92252dd2b07e99d39 Mon Sep 17 00:00:00 2001 From: James Rasell Date: Tue, 25 Mar 2025 15:00:46 +0100 Subject: [PATCH] cli: Use meta response index to start monitoring volume create. (#25514) --- command/volume_create_host.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command/volume_create_host.go b/command/volume_create_host.go index 3ef709ea1..07b4fc5ad 100644 --- a/command/volume_create_host.go +++ b/command/volume_create_host.go @@ -52,7 +52,7 @@ func (c *VolumeCreateCommand) hostVolumeCreate( Volume: vol, PolicyOverride: override, } - resp, _, err := client.HostVolumes().Create(req, nil) + resp, meta, err := client.HostVolumes().Create(req, nil) if err != nil { c.Ui.Error(fmt.Sprintf("Error creating volume: %s", err)) return 1 @@ -75,7 +75,7 @@ func (c *VolumeCreateCommand) hostVolumeCreate( c.Ui.Output(fmt.Sprintf( "==> Created host volume %s with ID %s", vol.Name, vol.ID)) volID = vol.ID - lastIndex = vol.ModifyIndex + lastIndex = meta.LastIndex } if vol.Namespace != "" {