1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

ovirt: FCP storage domains don't have to have target (#38882)

This commit is contained in:
Ondra Machacek 2018-04-26 12:43:19 +02:00 committed by ansibot
parent dca6e2d94d
commit 3a60cde14e

View file

@ -356,6 +356,9 @@ class StorageDomainModule(BaseModule):
return [(lun_id, storage.get('target')) for lun_id in lun_ids] return [(lun_id, storage.get('target')) for lun_id in lun_ids]
elif storage.get('target_lun_map'): elif storage.get('target_lun_map'):
return [(target_map.get('lun_id'), target_map.get('target')) for target_map in storage.get('target_lun_map')] return [(target_map.get('lun_id'), target_map.get('target')) for target_map in storage.get('target_lun_map')]
else:
lun_ids = storage.get('lun_id') if isinstance(storage.get('lun_id'), list) else [(storage.get('lun_id'))]
return [(lun_id, None) for lun_id in lun_ids]
def build_entity(self): def build_entity(self):
storage_type = self._get_storage_type() storage_type = self._get_storage_type()