Skip to content

Commit

Permalink
Merge branch 'master' into vsp_0125
Browse files Browse the repository at this point in the history
  • Loading branch information
tanjiangyu-ghca authored Feb 10, 2022
2 parents 5fc0a18 + 928641a commit a699fa2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions delfin/common/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,9 @@ class HostStatus(object):
NORMAL = 'normal'
OFFLINE = 'offline'
ABNORMAL = 'abnormal'
DEGRADED = 'degraded'

ALL = (NORMAL, OFFLINE, ABNORMAL)
ALL = (NORMAL, OFFLINE, ABNORMAL, DEGRADED)


class HostOSTypes(object):
Expand Down Expand Up @@ -279,9 +280,11 @@ class InitiatorType(object):
FC = 'fc'
ISCSI = 'iscsi'
NVME_OVER_ROCE = 'roce'
SAS = 'sas'
NVME_OVER_FABRIC = 'nvme-of'
UNKNOWN = 'unknown'

ALL = (FC, ISCSI, NVME_OVER_ROCE, UNKNOWN)
ALL = (FC, ISCSI, NVME_OVER_ROCE, SAS, NVME_OVER_FABRIC, UNKNOWN)


# Enumerations for alert severity
Expand Down
2 changes: 1 addition & 1 deletion delfin/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ def __init__(self, user_id=None, project_id=None, is_admin=None,
super(RequestContext, self).__init__(
auth_token=auth_token,
user=user_id or user,
tenant=project_id or tenant,
domain=kwargs.pop('domain', None),
user_domain=kwargs.pop('user_domain', None),
project_domain=kwargs.pop('project_domain', None),
Expand All @@ -70,6 +69,7 @@ def __init__(self, user_id=None, project_id=None, is_admin=None,
roles=roles)

self.user_id = self.user
self.tenant = project_id or tenant
self.project_id = self.tenant

self.read_deleted = read_deleted
Expand Down

0 comments on commit a699fa2

Please sign in to comment.