Skip to content

Commit

Permalink
Fixes brick Nova pep8 violation for lvm.py
Browse files Browse the repository at this point in the history
Running pep8 tests in Nova gives a violation
in lvm.py for not importing a module.  This
is a simple fix to import the module itself
instead of only importing a function in the
module.

Fixes bug #1220849

Change-Id: Idc603dcfab18601dd4246c623d34be5933434f84
  • Loading branch information
hemna committed Sep 4, 2013
1 parent 7647ce8 commit 9faa325
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cinder/brick/local_dev/lvm.py
Expand Up @@ -22,7 +22,7 @@
import math
import re

from itertools import izip
import itertools

from cinder.brick import exception
from cinder.brick import executor
Expand Down Expand Up @@ -169,7 +169,7 @@ def get_all_volumes(root_helper, vg_name=None, no_suffix=True):
lv_list = []
if out is not None:
volumes = out.split()
for vg, name, size in izip(*[iter(volumes)] * 3):
for vg, name, size in itertools.izip(*[iter(volumes)] * 3):
lv_list.append({"vg": vg, "name": name, "size": size})

return lv_list
Expand Down

0 comments on commit 9faa325

Please sign in to comment.