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

command/fmt: Ensure all variable files ending in .pkrvars.hcl get formatted #10377

Merged
merged 1 commit into from
Dec 14, 2020

Commits on Dec 11, 2020

  1. command/fmt: Ensure all variable files ending in .pkrvars.hcl get f…

    …ormatted
    
    Before change
    ```
    ⇶  packer fmt -check /tmp/unformatted.pkrvars.hcl
    Error: Cannot tell whether /tmp/unformatted.pkrvars.hcl contains HCL2 configuration data
    
    ⇶  echo $?
    1
    ```
    
    After fix
    ```
    ⇶  packer fmt -check /tmp/unformatted.pkrvars.hcl
    /tmp/unformatted.pkrvars.hcl
    
    ⇶  echo $?
    3
    
    ⇶  packer fmt -check command/test-fixtures/fmt
    command/test-fixtures/fmt/unformatted.pkr.hcl
    command/test-fixtures/fmt/unformatted.auto.pkrvars.hcl
    command/test-fixtures/fmt/unformatted.pkrvars.hcl
    
    ```
    nywilken committed Dec 11, 2020
    Configuration menu
    Copy the full SHA
    ec18450 View commit details
    Browse the repository at this point in the history