diff options
Diffstat (limited to 'oslo_rootwrap/filters.py')
-rw-r--r-- | oslo_rootwrap/filters.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/oslo_rootwrap/filters.py b/oslo_rootwrap/filters.py index a996ea0..1950f02 100644 --- a/oslo_rootwrap/filters.py +++ b/oslo_rootwrap/filters.py @@ -14,9 +14,14 @@ # under the License. import os -import pwd import re import shutil +import sys + +if sys.platform != 'win32': + # NOTE(claudiub): pwd is a Linux-specific library, and currently there is + # no Windows support for oslo.rootwrap. + import pwd def _getuid(user): |