Skip to content

Commit

Permalink
Display confirmation message on 'nomad volume delete' and 'nomad volu…
Browse files Browse the repository at this point in the history
…me deregister'
  • Loading branch information
lgfa29 committed May 24, 2021
1 parent e210867 commit 3c2f1d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
1 change: 1 addition & 0 deletions command/volume_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
1 change: 1 addition & 0 deletions command/volume_deregister.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 3c2f1d1

Please sign in to comment.