Skip to content

Identity related prompts doesn't follow the "Interactive" settings #2125

Description

@mdupras

Describe the Bug

When identities are present and no default is set.
Atmos will always prompt for identity.

Expected Behavior

If no default is set, and multiple identity are present, atmos should exit with an error code.

Steps to Reproduce

  • Add 2+ identities to the atmos.yaml files (with no default value set)
  • Execute atmos list stacks --interactive=false

Screenshots

$ atmos list stacks --interactive=false                                                                                                                                                                                                                                                                                  
┃ No default identity configured. Please choose an identity:                                                                                                                                                                                                                                                                                                                
┃ Press ctrl+c or esc to exit                                                                                                                                                                                                                                                                                                                                               
┃ > dev                                                                                                                                                                                                                                                                                                                                                                     
┃   dev2                                      

Environment

No response

Additional Context

No response

Activity

  1. osterman commented on Mar 3, 2026

    @osterman
    Member

    That does appear to be the incorrect behavior.

  2. afeblot commented on Mar 3, 2026

    @afeblot

    May I add that --identity=false also does not work. Cf. #1931

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug🐛 An issue with the system

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions