mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
command/apply: check if state non-nil for interrupt
This commit is contained in:
parent
0f45ebbdc3
commit
9759606989
@ -160,7 +160,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.
|
||||||
if len(state.Outputs) > 0 {
|
if state != nil && len(state.Outputs) > 0 {
|
||||||
outputBuf := new(bytes.Buffer)
|
outputBuf := new(bytes.Buffer)
|
||||||
outputBuf.WriteString("[reset][bold][green]\nOutputs:\n\n")
|
outputBuf.WriteString("[reset][bold][green]\nOutputs:\n\n")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user