Skip to content

Commit

Permalink
Fix coloring for OperationTypeIgnore in --preview (Azure#2630)
Browse files Browse the repository at this point in the history
The `OperationTypeIgnore` should be rendered in grey instead of
yellow, since no action will be taken on the resource.
  • Loading branch information
ellismg authored Aug 15, 2023
1 parent 24655c0 commit cb50a37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/azd/pkg/output/ux/preview_provision.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ func colorType(opType OperationType) func(string, ...interface{}) string {
var final func(format string, a ...interface{}) string
switch opType {
case OperationTypeCreate,
OperationTypeNoChange:
OperationTypeNoChange,
OperationTypeIgnore:
final = output.WithGrayFormat
case OperationTypeDelete:
final = color.RedString
Expand Down

0 comments on commit cb50a37

Please sign in to comment.