[Trivialfix]Fix typos

Fix the typos in manila.

Change-Id: I4d446759eddf512c46247aca0bab08b4c8155d9a
This commit is contained in:
shangxiaobj 2017-08-01 01:24:35 -07:00
parent f6372af172
commit 5084efe621
2 changed files with 2 additions and 2 deletions

View File

@ -298,7 +298,7 @@ class QnapShareDriver(driver.ShareDriver):
def delete_share(self, context, share, share_server=None): def delete_share(self, context, share, share_server=None):
"""Delete the specified share.""" """Delete the specified share."""
# Use private_storage to retreive volume ID created in the NAS. # Use private_storage to retrieve volume ID created in the NAS.
volID = self.private_storage.get(share['id'], 'volID') volID = self.private_storage.get(share['id'], 'volID')
if not volID: if not volID:
LOG.warning('volID for Share %s does not exist', share['id']) LOG.warning('volID for Share %s does not exist', share['id'])

View File

@ -61,7 +61,7 @@ class UserMessageTest(base.BaseSharesAdminTest):
# for number of keys in response's dict, if there is only single # for number of keys in response's dict, if there is only single
# key, it returns directly this key, otherwise it returns # key, it returns directly this key, otherwise it returns
# parsed body. If limit param is used, then API returns # parsed body. If limit param is used, then API returns
# multiple keys in reponse ('messages' and 'message_links') # multiple keys in response ('messages' and 'message_links')
messages = body['messages'] messages = body['messages']
self.assertIsInstance(messages, list) self.assertIsInstance(messages, list)
ids = [x['resource_id'] for x in messages] ids = [x['resource_id'] for x in messages]