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

Multiple value entries #18

Open
MrMMorris opened this issue Mar 25, 2014 · 6 comments
Open

Multiple value entries #18

MrMMorris opened this issue Mar 25, 2014 · 6 comments

Comments

@MrMMorris
Copy link

Sorry to bug you again, thanks for the quick response last time!

I was wondering if it's possible to have multiple values such as for up/down? The easiest I guess would be to have them as an array? but they are strings.

Json:
"down": "ip r d 172.22.0.0/16 via 10.1.0.1 dev eth0",
"down": "ip r d 10.19.0.0/16 via 10.1.0.2 dev eth0"

Gives me only the first value.

"down": ["ip r d 172.22.0.0/16 via 10.1.0.1 dev eth0", "ip r d 10.19.0.0/16 via 10.1.0.2 dev eth0"]

Gives me "Option down must be a kind of String! You passed ["ip r d 172.22.0.0/16 via 10.1.0.1 dev eth0", "ip r d 10.19.0.0/16 via 10.1.0.2 dev eth0"]."

@guilhem
Copy link
Contributor

guilhem commented Mar 26, 2014

Seems to be quite complicated and painful to fic it in 1.0 version.

we may need #11 to be fixed :/

@guilhem
Copy link
Contributor

guilhem commented Apr 16, 2014

@MrMMoris
Can you use "command1 && command2"?
It may work before this issue is fixed.

@MrMMorris
Copy link
Author

@guilhem where would I have that? with the resource attribute or in the json?

@MrMMorris
Copy link
Author

@guilhem sorry for the double ping, but can you confirm where I would use "command1 && command2"?

Thanks

@guilhem
Copy link
Contributor

guilhem commented Apr 22, 2014

@MrMMorris : you can try that:
"down": "ip r d 172.22.0.0/16 via 10.1.0.1 dev eth0 && ip r d 10.19.0.0/16 via 10.1.0.2 dev eth0"

@github-actions
Copy link

Marking stale due to inactivity. Remove stale label or comment or this will be closed in 7 days. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.

@github-actions github-actions bot added the Stale label Sep 30, 2020
@xorimabot xorimabot removed the Stale label Sep 30, 2020
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

3 participants