Skip to content

Commit

Permalink
Merge "Fix processutils.execute errors on windows"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Sep 30, 2013
2 parents f8a9c3d + 5fc059f commit a6bc12c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nova/openstack/common/processutils.py
Expand Up @@ -132,7 +132,7 @@ def execute(*cmd, **kwargs):
raise UnknownArgumentError(_('Got unknown keyword args '
'to utils.execute: %r') % kwargs)

if run_as_root and os.geteuid() != 0:
if run_as_root and hasattr(os, 'geteuid') and os.geteuid() != 0:
if not root_helper:
raise NoRootWrapSpecified(
message=('Command requested root, but did not specify a root '
Expand Down

0 comments on commit a6bc12c

Please sign in to comment.