Skip to content

Commit

Permalink
Merge pull request #60 from telefonicaid/task/support_groups_in_service
Browse files Browse the repository at this point in the history
check if user has description and enabled fields before use it
  • Loading branch information
jcanonav authored Dec 21, 2016
2 parents f4faae0 + c05bb60 commit 729de4b
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 729de4b

Please sign in to comment.