Imports cleanup
Fixes bug #1013770 1. Reorder imports by full module path 2. Insert two blank lines after the last import Change-Id: I294ac3ab528f17a72811392d1732158e9487f3bf
This commit is contained in:
0
nova/rootwrap/__init__.py
Executable file → Normal file
0
nova/rootwrap/__init__.py
Executable file → Normal file
2
nova/rootwrap/compute.py
Executable file → Normal file
2
nova/rootwrap/compute.py
Executable file → Normal file
@@ -15,9 +15,9 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
from nova.rootwrap import filters
|
||||
|
||||
|
||||
filterlist = [
|
||||
# nova/virt/disk/mount.py: 'kpartx', '-a', device
|
||||
# nova/virt/disk/mount.py: 'kpartx', '-d', device
|
||||
|
1
nova/rootwrap/filters.py
Executable file → Normal file
1
nova/rootwrap/filters.py
Executable file → Normal file
@@ -15,7 +15,6 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
import os
|
||||
import re
|
||||
|
||||
|
2
nova/rootwrap/network.py
Executable file → Normal file
2
nova/rootwrap/network.py
Executable file → Normal file
@@ -15,9 +15,9 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
from nova.rootwrap import filters
|
||||
|
||||
|
||||
filterlist = [
|
||||
# nova/network/linux_net.py: 'ip', 'addr', 'add', str(floating_ip)+'/32'i..
|
||||
# nova/network/linux_net.py: 'ip', 'addr', 'del', str(floating_ip)+'/32'..
|
||||
|
2
nova/rootwrap/volume.py
Executable file → Normal file
2
nova/rootwrap/volume.py
Executable file → Normal file
@@ -15,9 +15,9 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
from nova.rootwrap import filters
|
||||
|
||||
|
||||
filterlist = [
|
||||
# nova/volume/iscsi.py: iscsi_helper '--op' ...
|
||||
filters.CommandFilter("/usr/sbin/ietadm", "root"),
|
||||
|
1
nova/rootwrap/wrapper.py
Executable file → Normal file
1
nova/rootwrap/wrapper.py
Executable file → Normal file
@@ -15,7 +15,6 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
@@ -29,6 +29,7 @@ from nova.tests import fake_utils
|
||||
from nova.virt.baremetal import dom
|
||||
from nova.virt.baremetal import proxy
|
||||
|
||||
|
||||
FLAGS = flags.FLAGS
|
||||
|
||||
|
||||
|
@@ -17,6 +17,7 @@
|
||||
import os
|
||||
import StringIO
|
||||
|
||||
|
||||
files = {}
|
||||
disk_sizes = {}
|
||||
disk_backing_files = {}
|
||||
|
@@ -38,6 +38,7 @@ from nova.db.sqlalchemy.migration import versioning_api as migration_api
|
||||
from nova import log as logging
|
||||
from nova import test
|
||||
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
|
@@ -29,6 +29,7 @@ from nova import log as logging
|
||||
from nova import test
|
||||
from nova.volume import netapp
|
||||
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user