oslo.rootwrap/oslo_rootwrap
Lucian Petrut 8f148f5e9e Fix portability issue
The use of the "resource" module now prevents oslo.rootwrap from
being imported on Windows.

Although oslo.rootwrap is not effectively used on Windows, it's
important for it to at least be importable, since it's widely
used throughout OpenStack projects without having platform checks
in place.

This change checks if the "resource" module is avaialble before
attempting to use it.

Change-Id: I2391315f77718a3c9eb9fc8c03a6882237f33548
Closes-Bug: #1804639
2018-11-22 13:22:52 +02:00
..
tests Make IpNetnsExecFilter more strict to detect aliases 2018-05-10 12:40:29 +00:00
__init__.py Fix Python 3 support for eventlet monkey-patching 2015-10-13 21:51:47 +02:00
client.py Add bandit to pep8 job 2017-12-13 11:25:50 +08:00
cmd.py Fix portability issue 2018-11-22 13:22:52 +02:00
daemon.py Allow rootwrap-daemon to timeout and exit 2017-03-02 10:58:04 +09:00
filters.py Make IpNetnsExecFilter more strict to detect aliases 2018-05-10 12:40:29 +00:00
jsonrpc.py Drop python 2.6 support 2015-11-26 21:00:29 +08:00
version.py pbr.version.VersionInfo needs package name (oslo.xyz and not oslo_xyz) 2017-02-06 12:49:21 -05:00
wrapper.py Run rootwrap with lower fd ulimit by default 2018-10-09 12:12:46 +02:00