Skip to content
This repository has been archived by the owner on Jan 14, 2020. It is now read-only.

Commit

Permalink
Merge 0dfabd6 into 7ea8ec5
Browse files Browse the repository at this point in the history
  • Loading branch information
ojkelly committed Sep 28, 2018
2 parents 7ea8ec5 + 0dfabd6 commit 5fa296e
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions internal/cloudformation/tasks/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,26 @@ func PrintStackEventHeader() {
// PrintStackEvent prints a single event
func PrintStackEvent(event *awsCF.StackEvent, isLast bool) {
timeStamp := event.Timestamp.Format("2006-01-02 15:04:05")
resourceStatus := event.ResourceStatus
resourceType := event.ResourceType
logicalResourceID := event.LogicalResourceId
resourceStatusReason := event.ResourceStatusReason
var resourceStatus string

if event.ResourceStatus != nil {
resourceStatus = *event.ResourceStatus
}
var resourceType string

if event.ResourceType != nil {
resourceType = *event.ResourceType
}
var logicalResourceID string

if event.LogicalResourceId != nil {
logicalResourceID = *event.LogicalResourceId
}
var resourceStatusReason string

if event.ResourceStatusReason != nil {
resourceStatusReason = *event.ResourceStatusReason
}

printer.SubStep(
fmt.Sprintf(
Expand Down

0 comments on commit 5fa296e

Please sign in to comment.