Fix codespell errors

This commit is contained in:
Cole Robinson 2019-05-16 07:13:09 -04:00
parent de59d33a59
commit bc4573a14b
3 changed files with 4 additions and 4 deletions

View File

@ -204,7 +204,7 @@ class URLTests(unittest.TestCase):
# Non-existent cdrom fails
try:
installer = Installer(hvmguest.conn, cdrom="/i/dont/exist/foobar")
installer = Installer(hvmguest.conn, cdrom="/not/exist/foobar")
self.assertEqual(None, installer.detect_distro(hvmguest))
raise AssertionError("Expected cdrom failure")
except ValueError as e:

View File

@ -78,7 +78,7 @@ def get_domain_and_guest(conn, domstr):
try:
domain = conn.lookupByName(domstr)
except Exception:
# Incase the VM has a UUID or ID for a name
# In case the VM has a UUID or ID for a name
logging.debug("Error looking up domain by name", exc_info=True)
if isint:
domain = conn.lookupByID(int(domstr))

View File

@ -905,7 +905,7 @@ class _SuboptCheckerClass:
if name.startswith("--unattended"):
# Hack, we don't have any test suite coverage of the
# unattended option. This should change soon but until then
# disable the test suite failue
# disable the test suite failure
return
self._all.add(name)
@ -970,7 +970,7 @@ class _VirtCLIArgumentStatic(object):
"cliname=%s propname is None but lookup_cb is not specified. "
"Even if a 'cb' is passed, 'propname' is still used for "
"device lookup for virt-xml --edit.\n\nIf cb is just "
"a convertor function for a single propname, then set "
"a converter function for a single propname, then set "
"both propname and cb. If this cliname is truly "
"not backed by a single propname, set lookup_cb=None or "
"better yet implement a lookup_cb. This message is here "