Merge "Fix typo in image_meta.py & checks.py & flavor.py"

This commit is contained in:
Jenkins 2016-12-26 14:09:59 +00:00 committed by Gerrit Code Review
commit aa77e0bd17
3 changed files with 3 additions and 3 deletions

View File

@ -510,7 +510,7 @@ class _FindVariableReferences(ast.NodeVisitor):
# variable 'foo' was used like:
# mocked_thing.bar = foo
# foo()
# self.assertRaises(excepion, foo)
# self.assertRaises(exception, foo)
self._references.append(node.id)
super(_FindVariableReferences, self).generic_visit(node)

View File

@ -203,7 +203,7 @@ class Flavor(base.NovaPersistentObject, base.NovaObject,
base.NovaObjectDictCompat):
# Version 1.0: Initial version
# Version 1.1: Added save_projects(), save_extra_specs(), removed
# remoteable from save()
# remotable from save()
VERSION = '1.1'
fields = {

View File

@ -100,7 +100,7 @@ class ImageMeta(base.NovaObject):
# in ImageMeta initially by mistake. To keep compatibility with compute
# nodes which are run with previous versions these fields are still
# not nullable in ImageMeta, but the code below converts None to
# approppriate empty values.
# appropriate empty values.
for fld in NULLABLE_STRING_FIELDS:
if fld in image_meta and image_meta[fld] is None:
image_meta[fld] = ''