Skip to content

Commit

Permalink
Merge pull request #469 from tanjiangyu-ghca/svc_host
Browse files Browse the repository at this point in the history
changem svc host ostype
  • Loading branch information
tanjiangyu-ghca authored Jan 26, 2022
2 parents fcd070b + d1b8160 commit 843e833
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions delfin/drivers/ibm/storwize_svc/ssh_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ class SSHHandler(object):
ALERT_NOT_FOUND_CODE = 'CMMVC8275E'
BLOCK_SIZE = 512
BYTES_TO_BIT = 8
OS_TYPE_MAP = {'generic': constants.HostOSTypes.LINUX,
OS_TYPE_MAP = {'generic': constants.HostOSTypes.UNKNOWN,
'hp/unix': constants.HostOSTypes.HP_UX,
'openvms': constants.HostOSTypes.OPEN_VMS,
'tpgs': constants.HostOSTypes.AIX,
'vvol': constants.HostOSTypes.AIX
'tpgs': constants.HostOSTypes.UNKNOWN,
'vvol': constants.HostOSTypes.UNKNOWN
}
INITIATOR_STATUS_MAP = {'active': constants.InitiatorStatus.ONLINE,
'offline': constants.InitiatorStatus.OFFLINE,
Expand Down Expand Up @@ -1109,7 +1109,6 @@ def list_masking_views(self, storage_id):
"native_masking_view_id": view_id,
}
view_list.append(view_result)

return view_list
except Exception as e:
LOG.error("Failed to get view metrics from svc")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1395,7 +1395,7 @@ def __init__(self):
'name': 'tjy_test_iscsi',
'storage_id': '12345',
'native_storage_host_id': '38',
'os_type': 'Linux',
'os_type': 'Unknown',
'status': 'normal'
}
]
Expand Down

0 comments on commit 843e833

Please sign in to comment.