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

Backport of agent/template: fix exec parsing error for templates into release/1.11.x #16233

Conversation

hc-github-team-secure-vault-core
Copy link
Collaborator

Backport

This PR is auto-generated from #16231 to be assessed for backporting due to the inclusion of the label backport/1.11.x.

The below text is copied from the body of the original PR.


When attempting to parse exec in template stanzas, the map was being decoded as a slice, but exec expects a map:

Error loading configuration from $FILE.json: error parsing 'template': 1 error(s) decoding:

* 'exec' expected a map, got 'slice'

This is similar to wait and needs to be treated appropriately by flattening the slice.

Fixes #16230.


Overview of commits

@jasonodonnell jasonodonnell merged commit 740eeff into release/1.11.x Jul 6, 2022
@jasonodonnell jasonodonnell deleted the backport/template-exec-slice-err/genuinely-feasible-alien branch July 6, 2022 20:42
@jasonodonnell jasonodonnell added this to the 1.11.1 milestone Jul 6, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants