Update typos
Change-Id: I55a39f985fe51452ee8b892fff10787dddc7c837
This commit is contained in:
parent
d1eee8b234
commit
454533538a
@ -93,7 +93,7 @@ class CrudController(Controller):
|
|||||||
@abc.abstractmethod
|
@abc.abstractmethod
|
||||||
def get(self, *args, **kw):
|
def get(self, *args, **kw):
|
||||||
"""
|
"""
|
||||||
Get a resouce
|
Get a resource
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@abc.abstractmethod
|
@abc.abstractmethod
|
||||||
|
@ -159,10 +159,10 @@ def get_session(auth_url, endpoint, domain_id, domain_name, project_id,
|
|||||||
def find_resourceid_by_name_or_id(resource_client, name_or_id):
|
def find_resourceid_by_name_or_id(resource_client, name_or_id):
|
||||||
"""Find resource id from its id or name."""
|
"""Find resource id from its id or name."""
|
||||||
try:
|
try:
|
||||||
# Try to return a uuid
|
# Try to return an uuid
|
||||||
return str(uuid.UUID(name_or_id))
|
return str(uuid.UUID(name_or_id))
|
||||||
except ValueError:
|
except ValueError:
|
||||||
# Not a uuid => asume it is resource name
|
# Not an uuid => assume it is resource name
|
||||||
pass
|
pass
|
||||||
|
|
||||||
resources = resource_client.list()
|
resources = resource_client.list()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user