Skip to content

Commit

Permalink
update scaleio initiators descroption
Browse files Browse the repository at this point in the history
  • Loading branch information
luojiagen committed Jun 2, 2022
1 parent 0209c10 commit fb977e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions delfin/drivers/dell_emc/scaleio/rest_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,9 @@ def list_storage_host_initiators(self, storage_id):
for initiators_json in (storage_initiators or []):
status = initiators_json.get('mdmConnectionState')
initiators_id = initiators_json.get('id')
description = constants.InitiatorType.UNKNOWN
initiators_type = constants.InitiatorType.UNKNOWN
if 'iscsi' in initiators_json.get('perfProfile'):
description = constants.InitiatorType.ISCSI
initiators_type = constants.InitiatorType.ISCSI
if 'Connected' == status:
status = constants.HostStatus.NORMAL
elif 'Disconnected' == status:
Expand All @@ -291,7 +291,7 @@ def list_storage_host_initiators(self, storage_id):
"storage_id": storage_id,
"native_storage_host_initiator_id": initiators_id,
"wwn": initiators_id,
'description': description,
"type": initiators_type,
"status": status,
"native_storage_host_id": initiators_json.get(
'protectionDomainId'),
Expand Down

0 comments on commit fb977e2

Please sign in to comment.