1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

python-lvm: Test case change for vg.reduce

Fix reduce as newly changed vg reduce fails when you
try to remove the last pv in the vg.

Signed-off-by: Tony Asleson <tasleson@redhat.com>
This commit is contained in:
Tony Asleson 2013-09-10 17:59:45 -05:00
parent 5074dcc896
commit ec7f632ce0

View File

@ -185,7 +185,7 @@ class TestLvm(unittest.TestCase):
for p in pvs: for p in pvs:
pe_devices.append(p.getName()) pe_devices.append(p.getName())
for pv in pe_devices: for pv in pe_devices[:-1]:
vg.reduce(pv) vg.reduce(pv)
vg.remove() vg.remove()