LVM class for performing LVM operations.
"""
-import itertools
import math
import os
import re
from oslo_concurrency import processutils as putils
from oslo_log import log as logging
from oslo_utils import excutils
+from six import moves
from cinder import exception
from cinder.i18n import _LE, _LI
lv_list = []
if out is not None:
volumes = out.split()
- for vg, name, size in itertools.izip(*[iter(volumes)] * 3):
+ iterator = moves.zip(*[iter(volumes)] * 3) # pylint: disable=E1101
+ for vg, name, size in iterator:
lv_list.append({"vg": vg, "name": name, "size": size})
return lv_list
import mock
from oslo_concurrency import processutils
from oslo_utils import units
+import six
from cinder import context
from cinder import exception
@staticmethod
def _convert_size(s):
- if isinstance(s, (int, long)):
+ if isinstance(s, six.integer_types):
return s
try:
cinder.tests.unit.test_service
cinder.tests.unit.test_sheepdog
cinder.tests.unit.test_smbfs
+cinder.tests.unit.test_srb
cinder.tests.unit.test_solidfire
cinder.tests.unit.test_test
cinder.tests.unit.test_test_utils