Skip to content

Fail gracefully as non-privileged user - #3328

Merged
thatch45 merged 1 commit into
saltstack:developfrom
intchanter:develop
Jan 19, 2013
Merged

thatch45 merged 1 commit into
saltstack:developfrom
intchanter:develop

Conversation

@intchanter

Copy link
Copy Markdown
Contributor

When running as a non-privileged user, salt gives a traceback on failing to open /proc/modules. The open is now wrapped in a try/except, with the exceptional condition returning False from the __virtual__() function in kvm_hyper.py.

This should be correct as non-privileged users can't manage a hypervisor anyway.

thatch45 added a commit that referenced this pull request Jan 19, 2013
Fail gracefully as non-privileged user
@thatch45
thatch45 merged commit 1c7dbe1 into saltstack:develop Jan 19, 2013
@thatch45

Copy link
Copy Markdown
Contributor

good to see you back in the fray @intchanter! This is a great catch!

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