diff --git a/eulerlauncher/backends/mac/image_handler.py b/eulerlauncher/backends/mac/image_handler.py index 122ac766a76348fd30d806c1017c3ef6355af89d..8b022e26b5313e615a34d92de9d51d5295cb4409 100644 --- a/eulerlauncher/backends/mac/image_handler.py +++ b/eulerlauncher/backends/mac/image_handler.py @@ -48,7 +48,7 @@ class MacImageHandler(object): self.LOG.debug(' '.join(download_cmd)) subprocess.call(' '.join(download_cmd), shell=True) #wget.download(url=images['remote'][img_to_download]['path'], out=os.path.join(self.image_dir, img_name), bar=None) - self.LOG.debug(f'Image: {img_to_download} succesfully downloaded from remote repo ...') + self.LOG.debug(f'Image: {img_to_download} successfully downloaded from remote repo ...') # Decompress the image self.LOG.debug(f'Decompressing image file: {img_name} ...') diff --git a/eulerlauncher/backends/mac/instance_handler.py b/eulerlauncher/backends/mac/instance_handler.py index 53152dce787a833672a880448cde410961445174..2162852b28892b896ff77fd02a3330708e0b534e 100644 --- a/eulerlauncher/backends/mac/instance_handler.py +++ b/eulerlauncher/backends/mac/instance_handler.py @@ -166,7 +166,7 @@ class MacInstanceHandler(object): if instance_pid in psutil.pids() and \ psutil.Process(instance_pid).is_running(): psutil.Process(instance_pid).kill() - self.LOG.debug(f'Instance: {name} with PID {instance_pid} succesfully killed ...') + self.LOG.debug(f'Instance: {name} with PID {instance_pid} successfully killed ...') else: self.LOG.debug(f'Instance: {name} with PID {instance_pid} already stopped, skip ...') else: @@ -195,7 +195,7 @@ class MacInstanceHandler(object): shutil.copyfile(vm_root_disk_src_path, vm_root_disk_dst_path) self.delete_instance(name, instance_record, all_instances) self.driver.take_and_export_snapshot(snapshot_name, vm_root_disk_dst_path, snapshot_name, dest_path) - # a little hack here, since the running vm's image is already deleted, change the local image path to the copyed image path + # a little hack here, since the running vm's image is already deleted, change the local image path to the copied image path all_images['local'][vm_img_id]['path'] = vm_root_disk_dst_path self.create_instance(name, vm_img_id, instance_record, all_instances, all_images, True, mac_address, vm_uuid, 'x86') os.remove(vm_root_disk_dst_path) diff --git a/eulerlauncher/backends/win/image_handler.py b/eulerlauncher/backends/win/image_handler.py index f0398a57ec5187b96035c5ad7f4f6a04487f6e3c..fe20238c47da8e6ea785421c88d0e3f30a44403f 100644 --- a/eulerlauncher/backends/win/image_handler.py +++ b/eulerlauncher/backends/win/image_handler.py @@ -46,7 +46,7 @@ class WinImageHandler(object): images['local'][img_to_download] = img_dict omni_utils.save_json_data(self.image_record_file, images) wget.download(url=images['remote'][img_to_download]['path'], out=os.path.join(self.image_dir, img_name), bar=progress_bar) - self.LOG.debug(f'Image: {img_to_download} succesfully downloaded from remote repo ...') + self.LOG.debug(f'Image: {img_to_download} successfully downloaded from remote repo ...') # Decompress the image self.LOG.debug(f'Decompressing image file: {img_name} ...') diff --git a/eulerlauncher/backends/win/instance_handler.py b/eulerlauncher/backends/win/instance_handler.py index 1eaf855f286c299e7b7205907a8f5e95ad641bc4..b21c98b4606c7ba05ad47cda06d01fa72d5a342a 100644 --- a/eulerlauncher/backends/win/instance_handler.py +++ b/eulerlauncher/backends/win/instance_handler.py @@ -136,7 +136,7 @@ class WinInstanceHandler(object): if child.pid in psutil.pids() and \ child.is_running(): child.kill() - self.LOG.debug(f'Instance: {child.name()} with PID {child.pid} succesfully killed ...') + self.LOG.debug(f'Instance: {child.name()} with PID {child.pid} successfully killed ...') else: self.LOG.debug(f'Instance: {child.name()} with PID {child.pid} already stopped, skip ...') diff --git a/eulerlauncher/services/instance_service.py b/eulerlauncher/services/instance_service.py index 448949130c356dd194b459c3cbcb539fa14ff788..018063d98d82b82617f6c955f3e933c40bcea4a6 100644 --- a/eulerlauncher/services/instance_service.py +++ b/eulerlauncher/services/instance_service.py @@ -73,7 +73,7 @@ class InstanceService(instances_pb2_grpc.InstanceGrpcServiceServicer): check_result = self.backend.check_names(request.name, all_instances) if check_result == 1: - msg = f'Error: Instance with name {request.name} already exist in exixting Hyper-V or Qemu backend, please specify another name.' + msg = f'Error: Instance with name {request.name} already exist in existing Hyper-V or Qemu backend, please specify another name.' return instances_pb2.CreateInstanceResponse(ret=2, msg=msg) vm = self.backend.create_instance(