Skip to content

Commit

Permalink
check if user has description and enabled fields before use it
Browse files Browse the repository at this point in the history
  • Loading branch information
Alvaro Vega committed Dec 21, 2016
1 parent 292cf34 commit c05bb60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/orchestrator/core/keystone.py
Original file line number Diff line number Diff line change
Expand Up @@ -1025,10 +1025,10 @@ def getDomainUsers(self,
"name": user['userName'],
"userName": user['userName'],
"id": user['id'],
"description": user["displayName"],
"description": user["displayName"] if "displayName" in user else "",
"domain_id":
user['urn:scim:schemas:extension:keystone:1.0']['domain_id'],
"enabled": user['active']
"enabled": user['active'] if "active" in user else ""
}
)
res = {"users": users}
Expand Down

0 comments on commit c05bb60

Please sign in to comment.