Skip to content

Commit

Permalink
Use None when Running On is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
feloy committed Dec 5, 2022
1 parent 6e87591 commit 7937a74
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/odo/cli/list/component/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,15 @@ func HumanReadableOutput(ctx context.Context, list api.ResourcesList) {
}

row := table.Row{name, componentType, mode, managedBy}

if feature.IsEnabled(ctx, feature.GenericRunOnFlag) {
row = append(row, comp.RunningOn)
runningOn := comp.RunningOn
if runningOn == "" {
runningOn = "None"
}
row = append(row, runningOn)
}

t.AppendRow(row)
}
t.Render()
Expand Down

0 comments on commit 7937a74

Please sign in to comment.