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

kitchen-azurerm fails to parse $HOME/.azure/credentials file encoded with UTF with BOM #213

Open
grzegorz-wolszczak opened this issue Aug 13, 2021 · 0 comments

Comments

@grzegorz-wolszczak
Copy link

grzegorz-wolszczak commented Aug 13, 2021

Version:

kitchen-azurerm (1.6.0)

Environment:

Chef Workstation version: 21.4.365
Chef Infra Client version: 16.12.3
Chef InSpec version: 4.29.3
Chef CLI version: 4.0.0
Chef Habitat version: 1.6.288
Test Kitchen version: 2.11.2
Cookstyle version: 7.10.0
Windows 10

Scenario:

I've called kitchen create to have VM created in azure

Steps to Reproduce:

Change your $HOME/.azure/credentials files to have encoding set to UTF with BOM

Expected Result:

I've expected command kitchen create to succeed

Actual Result:

kitchen create command failed due to the inability to parse $HOME/.azure/credentials file

chef_kitchen_azure_driver_credentails_file_encoded_with_utf_with_bom_parsing_failure

You can see in the screenshot that BOM is not ignored when line with subscriptionId is being interpreted and is seen as blank characters in the output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant