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

Can't use List(String) varible type in parameter var #84

Open
IWB-jdetournay opened this issue Aug 18, 2022 · 0 comments
Open

Can't use List(String) varible type in parameter var #84

IWB-jdetournay opened this issue Aug 18, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@IWB-jdetournay
Copy link

Orb Version
3.0.1

Describe the bug
Using a List(String) type is not permit with the parameter var since it use a , to separate value.
i.e. foo=[bar,foo] is separated as -var foo=[bar -var foo]
Giving the error: -var option foo] is not correctly specified.

To Reproduce

- terraform/apply:
    var: 'foo=[bar,foo]'

Expected behavior

foo=[bar,foo] is separated as -var foo=[bar,foo]

Additional context

In the code a tr is use to replace , by a \n

for var in $(echo "${TF_PARAM_VAR}" | tr ',' '\n'); do
    PLAN_ARGS="$PLAN_ARGS -var $(eval echo "$var")"
done
@IWB-jdetournay IWB-jdetournay added the bug Something isn't working label Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant