-
Notifications
You must be signed in to change notification settings - Fork 60
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
[fix] Add quotes around the workspace name #37
Conversation
First of all, thanks again for the fix and not just for the reporting of the issue 😄 To the change itself. I thought it might be better if we quote the workspace already in the configobject (using shell#quote). Most likely we hit the same issue, when we have a streamname with space. And if you agree, would you implement it directly on this pr or should I do it afterwards? ☝️ |
Duh... That makes way more sense. I will make the change in my PR :)
|
Perfect! |
How do you feel about changing it to use Python3's string formatting? Would let us do something like command = "scm --show-alias n --show-uuid y list baselines --components {component} -r {config.repo} -u {config.user} -P {config.password} -m 20000".format(component=entry.component, config=config) ref: https://docs.python.org/3.4/library/string.html#formatstrings |
OK Done, changed in configuration.py instead of rtcFunctions. Tested locally, seems to work ok. |
Just kidding, saw what you meant. I used shlex.quote(), I think it might cover some more use cases than your shell file. If you'd rather me use shell.quote, that's fine by me. |
Nah, I preferr to have shlex.quote too as long as it works. 😄 For me shlex.quote didnt worked out for the usecase I had (but I forgot the details about it, why it didnt worked)
That looks cool 😋 Tell me if you like to do that or else you can open an issue for that and I will work on that as soon as I can. :) |
[fix] Add quotes around the workspace name (fixes #37)
Would be happy changing to python3's string formatting, would give me something to do 😄 |
Haha sure, go for it! I appreciate if you can do that 👍 |
Fixes #36
Adds single quotes around the workspace name to account for possible spaces.