Fixing typo and improving docstring of find_domain
This should make it easier to understand the purpose of find_domain - I believe the reason for which find_resource wasn't enough was not quite clear. Change-Id: I6a1cdfa86f52401d95c6da2cd38d7c95a140b4a1
This commit is contained in:
parent
d3bee31a9d
commit
bfff44fc17
@ -42,11 +42,11 @@ def find_service(identity_client, name_type_or_id):
|
|||||||
def find_domain(identity_client, name_or_id):
|
def find_domain(identity_client, name_or_id):
|
||||||
"""Find a domain.
|
"""Find a domain.
|
||||||
|
|
||||||
If the user does not have permssions to access the v3 domain API,
|
If the user does not have permissions to access the v3 domain API, e.g.,
|
||||||
assume that domain given is the id rather than the name. This
|
if the user is a project admin, assume that the domain given is the id
|
||||||
method is used by the project list command, so errors access the
|
rather than the name. This method is used by the project list command,
|
||||||
domain will be ignored and if the user has access to the project
|
so errors accessing the domain will be ignored and if the user has
|
||||||
API, everything will work fine.
|
access to the project API, everything will work fine.
|
||||||
|
|
||||||
Closes bugs #1317478 and #1317485.
|
Closes bugs #1317478 and #1317485.
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user