diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d47f5d2c..dbcac7279 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [v8.1.2](https://github.com/fastly/cli/releases/tag/v8.1.2) (2023-03-21) + +[Full Changelog](https://github.com/fastly/cli/compare/v8.1.1...v8.1.2) + +**Bug fixes:** + +* fix(service/create): input.Type assigned wrong value [#881](https://github.com/fastly/cli/pull/881) + ## [v8.1.1](https://github.com/fastly/cli/releases/tag/v8.1.1) (2023-03-20) [Full Changelog](https://github.com/fastly/cli/compare/v8.1.0...v8.1.1) diff --git a/pkg/commands/service/create.go b/pkg/commands/service/create.go index 2620df7fe..2fc4517e6 100644 --- a/pkg/commands/service/create.go +++ b/pkg/commands/service/create.go @@ -45,8 +45,8 @@ func (c *CreateCommand) Exec(_ io.Reader, out io.Writer) error { if c.comment.WasSet { input.Comment = &c.comment.Value } - if c.comment.WasSet { - input.Type = &c.comment.Value + if c.stype.WasSet { + input.Type = &c.stype.Value } s, err := c.Globals.APIClient.CreateService(&input) if err != nil {