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

Error when --var values start with an & #589

Open
sneal opened this issue Oct 11, 2022 · 3 comments
Open

Error when --var values start with an & #589

sneal opened this issue Oct 11, 2022 · 3 comments

Comments

@sneal
Copy link
Member

sneal commented Oct 11, 2022

Each vars value is interpolated and are unmarshalled as yaml via the imported bosh cli lib so when you have a var value that starts with an ampersand it causes an error. For example:

$ om configure-director \
  --config director.yml \
  --var "iaas-configurations_0_vcenter_password=&qgz6dUjD^Rj3S6e"

Deserializing variables 'iaas-configurations_0_vcenter_password=&qgz6dUjD^Rj3S6e': yaml: did not find expected alphabetic or numeric character
@cf-gitbot
Copy link
Member

We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.

The labels on this github issue will be updated when the story is started.

@sneal
Copy link
Member Author

sneal commented Oct 11, 2022

The workaround is to shove everything in a yaml file with double quotes around the value.

iaas-configurations_0_vcenter_password: "&qgz6dUjD^Rj3S6e"
om configure-director \
  --config director.yml \
  -l vars.yml

@jtarchie
Copy link
Contributor

If this is an issue here, it is most likely an issue with the bosh cli, too. This might have to resolve upstream.

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

No branches or pull requests

3 participants