sizematcher = SizeMatcher('size', drive_group.data_devices.size)
limit = getattr(drive_group.data_devices, 'limit', None)
count = 0
- all = getattr(drive_group.data_devices, 'all', None)
+ _all = getattr(drive_group.data_devices, 'all', None)
paths = [device.path for device in drive_group.data_devices.paths]
osd_list = []
for pod in rook_pods.items:
if not limit or (count < limit):
if device.available:
if (
- all
+ _all
or (
device.sys_api['node'] in matching_hosts
and sizematcher.compare(device)
if drive_group.data_devices.size:
sizematcher = SizeMatcher('size', drive_group.data_devices.size)
limit = getattr(drive_group.data_devices, 'limit', None)
- all = getattr(drive_group.data_devices, 'all', None)
+ _all = getattr(drive_group.data_devices, 'all', None)
paths = [device.path for device in drive_group.data_devices.paths]
vendor = getattr(drive_group.data_devices, 'vendor', None)
model = getattr(drive_group.data_devices, 'model', None)
if not limit or (count < limit):
if device.available:
if (
- all
+ _all
or (
device.sys_api['node'] in matching_hosts
and sizematcher.compare(device)