- def _ConvertExclStorage(storage_units, excl_stor):
- result_units = []
- for (storage_type, storage_key) in storage_units:
- if storage_type in [constants.ST_LVM_VG, constants.ST_LVM_PV]:
- result_units.append((storage_type, storage_key, [excl_stor]))
- else:
- result_units.append((storage_type, storage_key, []))
- return result_units
-
- @staticmethod