Skip to content

Commit

Permalink
Handle nil commandOut (#8361)
Browse files Browse the repository at this point in the history
  • Loading branch information
d8660091 authored Jun 24, 2024
1 parent 0bb4701 commit 793814c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/pkg/ssm/run_output.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,9 @@ func (r *RunOutput) Successful() bool {

// StatusDetails returns the status details of the ssm command.
func (r *RunOutput) StatusDetails() string {
// handle nil pointer
if r.commandOut == nil {
return "NoCommandOutput"
}
return *r.commandOut.StatusDetails
}

0 comments on commit 793814c

Please sign in to comment.