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

Getting all element of a list #75

Open
phongnguyen-monex opened this issue Sep 16, 2021 · 1 comment
Open

Getting all element of a list #75

phongnguyen-monex opened this issue Sep 16, 2021 · 1 comment

Comments

@phongnguyen-monex
Copy link

phongnguyen-monex commented Sep 16, 2021

I have a json file that contain a list like this:

{
	"list": [
		"banana",
		"apple"
	]
}

I can pass a singular elements with data.sops_file.secret.data["list.0"], but I couldn't find a way to pass the whole list. Is there any way to get this supported? Something like data.sops_file.secret.data["list"] would return the list

@lgruen
Copy link

lgruen commented Apr 1, 2022

jsondecode(data.sops_file.secret.raw).list seems to work.

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

2 participants