mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 01:41:48 -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 len(state.Outputs) > 0 {
|
||||
if state != nil && len(state.Outputs) > 0 {
|
||||
outputBuf := new(bytes.Buffer)
|
||||
outputBuf.WriteString("[reset][bold][green]\nOutputs:\n\n")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user