Merge "Update typos"

This commit is contained in:
Jenkins
2016-01-14 15:27:39 +00:00
committed by Gerrit Code Review
2 changed files with 3 additions and 3 deletions

View File

@@ -93,7 +93,7 @@ class CrudController(Controller):
@abc.abstractmethod
def get(self, *args, **kw):
"""
Get a resouce
Get a resource
"""
@abc.abstractmethod

View File

@@ -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):
"""Find resource id from its id or name."""
try:
# Try to return a uuid
# Try to return an uuid
return str(uuid.UUID(name_or_id))
except ValueError:
# Not a uuid => asume it is resource name
# Not an uuid => assume it is resource name
pass
resources = resource_client.list()