-
Notifications
You must be signed in to change notification settings - Fork 3
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
Curly braces in cooler/warmer commands got interpolated #1
Comments
The problem is the following: If you define this command,
the python code in relay.mesos tries to fill in the variable between brackets using python's string interpolation, or However, this can lead to unexpected consequences, particularly if you use "echo ${abc}". Another problem example would be If you define a warmer function with json code in it:
python thinks the json code is string formatting, incorrectly tries to interpolate the characters between the brackets, and raises a KeyError. Options:
I think option 1 is probably best. Remove the "feature." The more I write about it the more I realize this is an aweful feature! :) |
+1 remove the "feature"
|
I'd make the default behavior to be non-interpolating and enable interpolation by a command line flag. |
If we launch realy.mesos with a bash command that contains curly braces, it gets interpolated by python while building the command. Should me more clearly documented this mechanism.
Workaround: add another curly braces around the original ones.
The text was updated successfully, but these errors were encountered: