codespell: Whitelist 'cloneable'

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2020-09-04 15:18:26 -04:00
parent 8856b781d0
commit 7f1f5e343e
5 changed files with 9 additions and 8 deletions

View File

@ -2,3 +2,4 @@ matchs
doubleclick
msdos
hda
cloneable

View File

@ -1514,7 +1514,7 @@ class vmmDomain(vmmLibvirtObject):
return self.status() in [libvirt.VIR_DOMAIN_PAUSED]
def is_paused(self):
return self.status() in [libvirt.VIR_DOMAIN_PAUSED]
def is_clonable(self):
def is_cloneable(self):
return self.status() in [libvirt.VIR_DOMAIN_SHUTOFF]
def run_status(self):

View File

@ -124,7 +124,7 @@ class VMActionMenu(_VMMenu):
"suspend": bool(vm and vm.is_stoppable()),
"resume": bool(vm and vm.is_paused()),
"migrate": bool(vm and vm.is_stoppable()),
"clone": bool(vm and vm.is_clonable()),
"clone": bool(vm and vm.is_cloneable()),
}
vismap = {
"suspend": bool(vm and not vm.is_paused()),

View File

@ -168,9 +168,9 @@ def _build_clone_disk(orig_disk, clonepath, allow_create, sparse):
return new_disk
def _get_clonable_msg(disk):
def _get_cloneable_msg(disk):
"""
If the disk storage is not clonable, return a string explaining why
If the disk storage is not cloneable, return a string explaining why
"""
if disk.wants_storage_creation():
return _("Disk path '%s' does not exist.") % disk.path
@ -227,9 +227,9 @@ class _CloneDiskInfo:
def set_preserve_requested(self):
self._action = self._ACTION_PRESERVE
def check_clonable(self):
def check_cloneable(self):
try:
msg = _get_clonable_msg(self.disk)
msg = _get_cloneable_msg(self.disk)
if msg:
raise ValueError(msg)
except Exception as e:
@ -240,7 +240,7 @@ class _CloneDiskInfo:
def set_new_path(self, path, sparse):
allow_create = not self.is_preserve_requested()
if allow_create:
self.check_clonable()
self.check_cloneable()
try:
self.new_disk = Cloner.build_clone_disk(

View File

@ -109,7 +109,7 @@ def parse_args():
help=_("Do not clone storage contents to specified file paths, "
"their contents will be left untouched. "
"This requires specifying existing paths for "
"every clonable disk image."))
"every cloneable disk image."))
stog.add_argument("--nvram", dest="new_nvram",
help=_("New file to use as storage for nvram VARS"))