Skip to content

Commit

Permalink
[auto/go] - pass unquoted string to color flag (#9940)
Browse files Browse the repository at this point in the history
* [auto/go] - pass unquoted string to color flag

* Add to CHANGLOG

Co-authored-by: Fraser Waters <frassle@gmail.com>
  • Loading branch information
arvi3411301 and Frassle committed Jun 23, 2022
1 parent 7a54b74 commit 49b1835
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG_PENDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
[#9921](https://github.com/pulumi/pulumi/pull/9921)

### Bug Fixes

- [auto/go] Fix passing of the color option.
[#9940](https://github.com/pulumi/pulumi/pull/9940)
6 changes: 3 additions & 3 deletions sdk/go/auto/stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ func (s *Stack) Up(ctx context.Context, opts ...optup.Option) (UpResult, error)
sharedArgs = append(sharedArgs, fmt.Sprintf("--exec-agent=%s", upOpts.UserAgent))
}
if upOpts.Color != "" {
sharedArgs = append(sharedArgs, fmt.Sprintf("--color=%q", upOpts.Color))
sharedArgs = append(sharedArgs, fmt.Sprintf("--color=%s", upOpts.Color))
}
if upOpts.Plan != "" {
sharedArgs = append(sharedArgs, fmt.Sprintf("--plan=%s", upOpts.Plan))
Expand Down Expand Up @@ -448,7 +448,7 @@ func (s *Stack) Refresh(ctx context.Context, opts ...optrefresh.Option) (Refresh
args = append(args, fmt.Sprintf("--exec-agent=%s", refreshOpts.UserAgent))
}
if refreshOpts.Color != "" {
args = append(args, fmt.Sprintf("--color=%q", refreshOpts.Color))
args = append(args, fmt.Sprintf("--color=%s", refreshOpts.Color))
}
execKind := constant.ExecKindAutoLocal
if s.Workspace().Program() != nil {
Expand Down Expand Up @@ -519,7 +519,7 @@ func (s *Stack) Destroy(ctx context.Context, opts ...optdestroy.Option) (Destroy
args = append(args, fmt.Sprintf("--exec-agent=%s", destroyOpts.UserAgent))
}
if destroyOpts.Color != "" {
args = append(args, fmt.Sprintf("--color=%q", destroyOpts.Color))
args = append(args, fmt.Sprintf("--color=%s", destroyOpts.Color))
}
execKind := constant.ExecKindAutoLocal
if s.Workspace().Program() != nil {
Expand Down

0 comments on commit 49b1835

Please sign in to comment.