diff --git a/tests/data/codespell_dict.txt b/tests/data/codespell_dict.txt index 4141ba84..33e33615 100644 --- a/tests/data/codespell_dict.txt +++ b/tests/data/codespell_dict.txt @@ -2,3 +2,4 @@ matchs doubleclick msdos hda +cloneable diff --git a/virtManager/object/domain.py b/virtManager/object/domain.py index 4fe7d1e6..31afb856 100644 --- a/virtManager/object/domain.py +++ b/virtManager/object/domain.py @@ -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): diff --git a/virtManager/vmmenu.py b/virtManager/vmmenu.py index 12eaa588..e239b7d8 100644 --- a/virtManager/vmmenu.py +++ b/virtManager/vmmenu.py @@ -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()), diff --git a/virtinst/cloner.py b/virtinst/cloner.py index 129202fb..6ff7e7ef 100644 --- a/virtinst/cloner.py +++ b/virtinst/cloner.py @@ -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( diff --git a/virtinst/virtclone.py b/virtinst/virtclone.py index e4c0809b..ef26003c 100644 --- a/virtinst/virtclone.py +++ b/virtinst/virtclone.py @@ -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"))