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

allow runproc command to be a string #406

Merged
merged 1 commit into from
Jul 22, 2021
Merged

allow runproc command to be a string #406

merged 1 commit into from
Jul 22, 2021

Conversation

adammoody
Copy link
Contributor

In cases where one can pass the runproc command as a string, it can help with readability (and also cut-and-paste into a shell for testing). This extends runproc to accept a string, which it splits on whitespace to create the argv list. This does not support a command with an argument that has embedded spaces.

This updates some of the ResourceManager classes to use the string option.

@adammoody
Copy link
Contributor Author

@chaseleif , would you please merge this in when you get a chance? In most of the spots where runproc is called, it's best to leave argv as a list.

@chaseleif chaseleif merged commit 4e0fa20 into pyfe Jul 22, 2021
@adammoody adammoody deleted the cmdsplit branch July 22, 2021 23:33
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

Successfully merging this pull request may close these issues.

2 participants