Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Argument order is relevant for --skip-init #799

Open
mss opened this issue Nov 22, 2024 · 0 comments
Open

Argument order is relevant for --skip-init #799

mss opened this issue Nov 22, 2024 · 0 comments
Labels
bug 🐛 An issue with the system

Comments

@mss
Copy link
Contributor

mss commented Nov 22, 2024

Describe the Bug

This does not work as intended:

atmos terraform output ... --skip-init --json # output is not JSON formatted
atmos terraform show ... --skip-init --json # output is not JSON formatted
atmos terraform show ... --skip-init --json foo.tfplan # file is silently ignored
atmos terraform plan ... --skip-init --out foo.tfplan # breaks

This does work:

atmos terraform output ... --json --skip-init
atmos terraform show ... --json --skip-init
atmos terraform show ... --json foo.tfplan --skip-init
atmos terraform plan ... --out foo.tfplan --skip-init 

Expected Behavior

JSON formatted output

Steps to Reproduce

No JSON formatted output if --skip-init is specified before --json.

Screenshots

No response

Environment

  • Version: 1.108.0

Additional Context

No response

@mss mss added the bug 🐛 An issue with the system label Nov 22, 2024
@mss mss changed the title Argument order is relevant for --skip-init Argument order is relevant for --skip-init and --json Nov 22, 2024
@mss mss changed the title Argument order is relevant for --skip-init and --json Argument order is relevant for --skip-init Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An issue with the system
Projects
None yet
Development

No branches or pull requests

1 participant