diff --git a/command/volume_create_host.go b/command/volume_create_host.go index 62ccf1a4189..54cd31efb97 100644 --- a/command/volume_create_host.go +++ b/command/volume_create_host.go @@ -50,6 +50,10 @@ func (c *VolumeCreateCommand) hostVolumeCreate( lastIndex = vol.ModifyIndex } + if vol.Namespace != "" { + client.SetNamespace(vol.Namespace) + } + err = c.monitorHostVolume(client, volID, lastIndex, verbose) if err != nil { c.Ui.Error(fmt.Sprintf("==> %s: %v", formatTime(time.Now()), err.Error()))