Skip to content

no-fail-on-empty-changeset parameter not getting saved to samconfig.toml or mapped to deploy #2313

Open
@singledigit

Description

@singledigit

Description

When passing the --no-fail-on-empty-changeset flag in sam deploy -g, the parameter does not get saved to the samconfig.toml file. It also does not get passed in the deploy or have any affect. In #1657 this is talked about and the solution was to manually add it to the template. However, as of v1.6.2 this doesn't seem to work. I tried both no-fail-on-empty-changeset=true and fail-on-empty-changeset=false. No joy on either options.

Steps to reproduce

  1. in project run sam deploy -g --no-fail-on-empty-changeset

Observed result

Try 'sam deploy --help' for help.

Error: no such option: --no-fail-on-empty-changese  Did you mean --no-fail-on-empty-changeset?

Expected result

I expected the build to work even if no changes were found. I also expected the parameter to be saved in the samconfig.toml file for later builds

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

  1. OS: Mac and Linux
  2. sam --version: 1.6.2

Add --debug flag to command you are running

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions