Display confirmation message on 'nomad volume delete' and 'nomad volume deregister'

This commit is contained in:
Luiz Aoqui
2021-05-24 12:02:55 -04:00
committed by GitHub
parent e2108678b5
commit 3c2f1d1e5d
3 changed files with 3 additions and 0 deletions

View File

@@ -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:

View File

@@ -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
}

View File

@@ -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
}