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

MiqSystem.disk_usage learned to accept a path containing space(s) #3655

Merged
merged 2 commits into from Jul 30, 2015

Conversation

jrafanie
Copy link
Member

Delete unused MiqSystem.swapinfo

We need to convert these runcmd calls to use AwesomeSpawn to fix quoting issues.
Since swapinfo isn't called and is lacking tests, let's delete this and add it
when we know what we need.

Use AwesomeSpawn.run! to deal with shell escaping

Fixes running "df" with a file/directory path with a space.

I saw this when running Postgres.app where my data directory has space(s):
/Applications/Postgres.app/Contents/Versions/9.4/bin/postgres -D /Users/username/Library/Application Support/Postgres/var-9.4

Preliminary for Postgresql 9.4 support:
https://trello.com/c/Mk4DhnCW

We need to convert these runcmd calls to use AwesomeSpawn to fix quoting issues.
Since swapinfo isn't called and is lacking tests, let's delete this and add it
when we know what we need.

Preliminary for Postgresql 9.4 support:
https://trello.com/c/Mk4DhnCW
Fixes running "df" with a file/directory path with a space.

I saw this when running Postgres.app where my data directory has space(s):
`/Applications/Postgres.app/Contents/Versions/9.4/bin/postgres -D /Users/username/Library/Application Support/Postgres/var-9.4`

Preliminary for Postgresql 9.4 support:
https://trello.com/c/Mk4DhnCW
@jrafanie
Copy link
Member Author

@chessbyte @Fryguy please review, I couldn't find uses of swapinfo and deleting unused code is 😍 and made it easier to convert these commands to AwesomeSpawn for the shell quoting.

@miq-bot
Copy link
Member

miq-bot commented Jul 29, 2015

Checked commits jrafanie@0215938 .. jrafanie@b34fed3 with rubocop 0.32.1 and haml-lint 0.13.0
2 files checked, 0 offenses detected
Everything looks good. 🍪

Fryguy added a commit that referenced this pull request Jul 30, 2015
MiqSystem.disk_usage learned to accept a path containing space(s)
@Fryguy Fryguy merged commit 36bf984 into ManageIQ:master Jul 30, 2015
@Fryguy Fryguy deleted the path_with_spaces branch July 30, 2015 14:40
@Fryguy Fryguy added this to the Sprint 27 Ending August 3, 2015 milestone Jul 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants