mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
command/destroy: don't show outputs
This commit is contained in:
parent
bb698217f8
commit
8fc134caa1
@ -254,7 +254,7 @@ func (c *ApplyCommand) Run(args []string) int {
|
|||||||
|
|
||||||
// If we have outputs, then output those at the end.
|
// If we have outputs, then output those at the end.
|
||||||
var outputs map[string]string
|
var outputs map[string]string
|
||||||
if state != nil {
|
if !c.Destroy && state != nil {
|
||||||
outputs = state.RootModule().Outputs
|
outputs = state.RootModule().Outputs
|
||||||
}
|
}
|
||||||
if len(outputs) > 0 {
|
if len(outputs) > 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user