nova/nova/tests
Michael Still 07627d4d39 Hacking N362: Don't abbrev/alias privsep import
As noted in [1]:

We always import privsep modules like this:

    import nova.privsep.libvirt

Not like this:

    from nova.privsep import libvirt

This is because it makes it obvious at the caller that a priviledged
operation is occuring:

    nova.privsep.libvirt.destroy_root_filesystem()

Not just:

    libvirt.destroy_root_filesystem()

This is especially true when the imported module is called "libvirt",
which is a very common term in the codebase and super hard to grep
for specific uses of.

This commit introduces hacking rule N362 to enforce the above.

Change-Id: I9b6aefa015acbf28e49a9ff1713a8bb544586579
Co-Authored-By: Eric Fried <openstack@fried.cc>
2019-04-04 20:42:43 +00:00
..
functional Remove CellMappingPayload database_connection and transport_url fields 2019-04-04 09:59:12 -04:00
live_migration/hooks Replace openstack.org git:// URLs with https:// 2019-03-24 20:34:42 +00:00
unit Hacking N362: Don't abbrev/alias privsep import 2019-04-04 20:42:43 +00:00
__init__.py
fixtures.py Hacking N362: Don't abbrev/alias privsep import 2019-04-04 20:42:43 +00:00
json_ref.py Transform instance.exists notification 2018-06-05 12:51:30 +00:00