From 7a2bb0f98a7bb1c2b8baedc9dc3c54ced747600e Mon Sep 17 00:00:00 2001 From: Luiz Aoqui Date: Thu, 13 May 2021 17:45:50 -0400 Subject: [PATCH 1/3] display confirmation message on 'nomad volume delete' --- command/volume_delete.go | 1 + 1 file changed, 1 insertion(+) diff --git a/command/volume_delete.go b/command/volume_delete.go index 6ee508248e05..d965de9a9854 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 } From 47226aa86e3f19c663836a1bb28a2cc4a0847625 Mon Sep 17 00:00:00 2001 From: Luiz Aoqui Date: Thu, 13 May 2021 18:43:32 -0400 Subject: [PATCH 2/3] display confirmation message on 'nomad volume deregister' --- command/volume_deregister.go | 1 + 1 file changed, 1 insertion(+) diff --git a/command/volume_deregister.go b/command/volume_deregister.go index 1710f3cafd8e..622739badefa 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 } From 7c4640331d6b356466b97658bd32c17a0862680a Mon Sep 17 00:00:00 2001 From: Tim Gross Date: Mon, 24 May 2021 11:42:43 -0400 Subject: [PATCH 3/3] changelog entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e130ee0f3a4..4ed840050d50 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: