Merge "Brick LVM: Remove self.lv_list"

This commit is contained in:
Jenkins
2014-12-24 23:47:12 +00:00
committed by Gerrit Code Review

View File

@@ -58,7 +58,6 @@ class LVM(executor.Executor):
super(LVM, self).__init__(execute=executor, root_helper=root_helper) super(LVM, self).__init__(execute=executor, root_helper=root_helper)
self.vg_name = vg_name self.vg_name = vg_name
self.pv_list = [] self.pv_list = []
self.lv_list = []
self.vg_size = 0.0 self.vg_size = 0.0
self.vg_free_space = 0.0 self.vg_free_space = 0.0
self.vg_lv_count = 0 self.vg_lv_count = 0
@@ -287,10 +286,9 @@ class LVM(executor.Executor):
:returns: List of Dictionaries with LV info :returns: List of Dictionaries with LV info
""" """
self.lv_list = self.get_lv_info(self._root_helper, return self.get_lv_info(self._root_helper,
self.vg_name, self.vg_name,
lv_name) lv_name)
return self.lv_list
def get_volume(self, name): def get_volume(self, name):
"""Get reference object of volume specified by name. """Get reference object of volume specified by name.