misc: codespell fixes

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Pavel Hrdina
2024-10-13 15:26:08 +02:00
parent a9a78f45cf
commit d4194c134b
7 changed files with 11 additions and 8 deletions
+3
View File
@@ -3,3 +3,6 @@ doubleclick
msdos msdos
hda hda
cloneable cloneable
passt
Cruzer
bootup
+1 -1
View File
@@ -77,7 +77,7 @@ def testAlterGuest():
check = _make_checker(guest) check = _make_checker(guest)
# Check specific vcpu_current behaviro # Check specific vcpu_current behavior
check("vcpus", 5, 10) check("vcpus", 5, 10)
assert guest.vcpu_current is None assert guest.vcpu_current is None
check("vcpu_current", None, 15) check("vcpu_current", None, 15)
+2 -2
View File
@@ -2090,12 +2090,12 @@ class vmmCreateVM(vmmGObjectUI):
else: # pragma: no cover else: # pragma: no cover
import virtBootstrap # pylint: disable=import-error import virtBootstrap # pylint: disable=import-error
meter.start(_("Bootstraping container"), None) meter.start(_("Bootstrapping container"), None)
def progress_update_cb(prog): def progress_update_cb(prog):
meter.start(_(prog['status']), None) meter.start(_(prog['status']), None)
asyncjob.details_enable() asyncjob.details_enable()
# Use logging filter to show messages of the progreess on the GUI # Use logging filter to show messages of the progress on the GUI
class SetStateFilter(logging.Filter): class SetStateFilter(logging.Filter):
def filter(self, record): def filter(self, record):
asyncjob.details_update("%s\n" % record.getMessage()) asyncjob.details_update("%s\n" % record.getMessage())
+2 -2
View File
@@ -496,7 +496,7 @@ def _populate_storage_list(storage_list, vm, conn, diskdatas):
def _prepare_storage_list(storage_list): def _prepare_storage_list(storage_list):
# Checkbox, deleteable?, storage path, target (hda), icon name, # Checkbox, deletable?, storage path, target (hda), icon name,
# icon size, tooltip # icon size, tooltip
model = Gtk.ListStore(bool, bool, str, str, bool, str, int, str) model = Gtk.ListStore(bool, bool, str, str, bool, str, int, str)
storage_list.set_model(model) storage_list.set_model(model)
@@ -557,7 +557,7 @@ def _storage_item_toggled(src, index, storage_list):
def _can_delete(conn, vol, path): def _can_delete(conn, vol, path):
"""Is the passed path even deleteable""" """Is the passed path even deletable"""
msg = None msg = None
if vol: if vol:
+1 -1
View File
@@ -2132,7 +2132,7 @@ class vmmDetails(vmmGObjectUI):
show_ui("char-target-type", target_type) show_ui("char-target-type", target_type)
show_ui("char-target-name", chardev.target_name) show_ui("char-target-name", chardev.target_name)
# Only show for the qemu guest agent, which we get async # Only show for the qemu guest agent, which we get async
# notifiations about connection state. For spice this UI field # notifications about connection state. For spice this UI field
# can get out of date # can get out of date
show_ui("char-target-state", chardev.target_state, doshow=is_qemuga) show_ui("char-target-state", chardev.target_state, doshow=is_qemuga)
clipboard = _("On") if chardev.source.clipboard_copypaste else _("Off") clipboard = _("On") if chardev.source.clipboard_copypaste else _("Off")
+1 -1
View File
@@ -140,7 +140,7 @@ def set_grid_row_visible(child, visible):
For the passed widget, find its parent GtkGrid, and hide/show all For the passed widget, find its parent GtkGrid, and hide/show all
elements that are in the same row as it. Simplifies having to name elements that are in the same row as it. Simplifies having to name
every element in a row when we want to dynamically hide things every element in a row when we want to dynamically hide things
based on UI interraction based on UI interaction
""" """
parent = child.get_parent() parent = child.get_parent()
if not isinstance(parent, Gtk.Grid): if not isinstance(parent, Gtk.Grid):
+1 -1
View File
@@ -3244,7 +3244,7 @@ class ParserSysinfo(VirtCLIParser):
# Previously libvirt treated sysinfo as a singleton object, but # Previously libvirt treated sysinfo as a singleton object, but
# that changed with fwcfg support. Our cli would merge all options # that changed with fwcfg support. Our cli would merge all options
# together but now needs to support multiple. Maintain sorta # together but now needs to support multiple. Maintain sorta
# backcompat behavior by mergin options if 'type' matches # backcompat behavior by merging options if 'type' matches
if not inst: if not inst:
typ = self.optdict["type"] typ = self.optdict["type"]
for sysinfo in self.guest.sysinfo: for sysinfo in self.guest.sysinfo: