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

Handle child PIDs differently depending on the availability of psutils #34182

Merged
merged 1 commit into from
Jun 22, 2016

Conversation

rallytime
Copy link
Contributor

What does this PR do?

In the change made in #33942, we are assuming that psutils is installed. This change checks if psutil is installed, and if it's not, it reverts back to the old behavior. If it is not installed, a warning is logged mentioning the missing dependency.

What issues does this PR fix or reference?

Fixes #34043

Previous Behavior

Stack traces would happen on calls that used and saltutil module function, as psutil couldn't be imported.

New Behavior

No more stacktraces when psutils is missing, warns when psutil isn't installed, and reverts back to old PID management.

Tests written?

No

ping @cachedout

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