From 3c2f1d1e5dd472938616cf191f3d84cea892fa71 Mon Sep 17 00:00:00 2001 From: Luiz Aoqui Date: Mon, 24 May 2021 12:02:55 -0400 Subject: [PATCH] Display confirmation message on 'nomad volume delete' and 'nomad volume deregister' --- CHANGELOG.md | 1 + command/volume_delete.go | 1 + command/volume_deregister.go | 1 + 3 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 09831d40132..60e810bc57b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## 1.1.1 (Unreleased) IMPROVEMENTS: +* cli: Added success confirmation message for `nomad volume delete` and `nomad volume deregister`. [[GH-10591](https://github.com/hashicorp/nomad/issues/10591)] * cli: Cross-namespace `nomad job` commands will now select exact matches if the selection is unambiguous. [[GH-10648](https://github.com/hashicorp/nomad/issues/10648)] BUG FIXES: diff --git a/command/volume_delete.go b/command/volume_delete.go index 6ee508248e0..d965de9a985 100644 --- a/command/volume_delete.go +++ b/command/volume_delete.go @@ -98,5 +98,6 @@ func (c *VolumeDeleteCommand) Run(args []string) int { return 1 } + c.Ui.Output(fmt.Sprintf("Successfully deleted volume %q!", volID)) return 0 } diff --git a/command/volume_deregister.go b/command/volume_deregister.go index 1710f3cafd8..622739badef 100644 --- a/command/volume_deregister.go +++ b/command/volume_deregister.go @@ -146,5 +146,6 @@ func (c *VolumeDeregisterCommand) Run(args []string) int { return 1 } + c.Ui.Output(fmt.Sprintf("Successfully deregistered volume %q!", volID)) return 0 }