Browse Source

Remove the unnecessary pv_list assign during LVM object init

The pv_list of LVM object actually wanted to be a list of dict of
physical volumes' info, but in the routine of creating a new vg,
we assign a list of physical volumes' name to it, which is unnecessary,
and also confuse people.

Change-Id: I5f74200e6df954258f261a30e9f5a5b56c6def2f
changes/30/481630/2
wang yong 4 years ago
committed by Sean McGinnis
parent
commit
c1bd361b93
  1. 2
      os_brick/local_dev/lvm.py

2
os_brick/local_dev/lvm.py

@ -82,8 +82,6 @@ class LVM(executor.Executor):
'LVM_SYSTEM_DIR=' + lvm_sys_dir]
if create_vg and physical_volumes is not None:
self.pv_list = physical_volumes
try:
self._create_vg(physical_volumes)
except putils.ProcessExecutionError as err:

Loading…
Cancel
Save