From 6eb27da5e4d725030662802ebaf89cc7bfef33e3 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Thu, 18 Sep 2025 01:24:04 +1000 Subject: [PATCH] Fix spelling in Java and Python files; update the ignored words list `codespell.txt` (#11285) Co-authored-by: dahn --- .github/linters/codespell.txt | 3 --- python/lib/cloudutils/utilities.py | 2 +- .../main/java/com/cloud/storage/VolumeApiServiceImpl.java | 8 ++++---- .../java/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java | 8 ++++---- 4 files changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/linters/codespell.txt b/.github/linters/codespell.txt index 37b3e6de1cb..55918266312 100644 --- a/.github/linters/codespell.txt +++ b/.github/linters/codespell.txt @@ -183,15 +183,12 @@ encryted enebled enmpty entires -enviornment environmnet equivalant erro erronous everthing everytime -excetion -excption excute execept execption diff --git a/python/lib/cloudutils/utilities.py b/python/lib/cloudutils/utilities.py index ce50516193e..5f7e34ed61d 100755 --- a/python/lib/cloudutils/utilities.py +++ b/python/lib/cloudutils/utilities.py @@ -98,7 +98,7 @@ def writeProgressBar(msg, result): sys.stdout.flush() class UnknownSystemException(Exception): - "This Excption is raised if the current operating enviornment is unknown" + "This Exception is raised if the current operating environment is unknown" pass class Distribution: diff --git a/server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java b/server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java index 5c5a4044909..eaedaefdae7 100644 --- a/server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java +++ b/server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java @@ -3113,7 +3113,7 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic } catch (InterruptedException e) { throw new RuntimeException("Operation is interrupted", e); } catch (ExecutionException e) { - throw new RuntimeException("Execution excetion", e); + throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous detach volume job", e); } Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob()); @@ -3548,7 +3548,7 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic } catch (InterruptedException e) { throw new RuntimeException("Operation is interrupted", e); } catch (ExecutionException e) { - throw new RuntimeException("Execution excetion", e); + throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous migrate volume job", e); } Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob()); @@ -3895,7 +3895,7 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic } catch (InterruptedException e) { throw new RuntimeException("Operation is interrupted", e); } catch (ExecutionException e) { - throw new RuntimeException("Execution excetion", e); + throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous take volume snapshot job", e); } Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob()); @@ -4259,7 +4259,7 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic } catch (InterruptedException e) { throw new RuntimeException("Operation is interrupted", e); } catch (ExecutionException e) { - throw new RuntimeException("Execution excetion", e); + throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous extract volume job", e); } Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob()); diff --git a/server/src/main/java/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java b/server/src/main/java/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java index 1fe06d8a3ee..80dbb451530 100644 --- a/server/src/main/java/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java +++ b/server/src/main/java/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java @@ -550,7 +550,7 @@ public class VMSnapshotManagerImpl extends MutualExclusiveIdsManagerBase impleme } catch (InterruptedException e) { throw new RuntimeException("Operation is interrupted", e); } catch (java.util.concurrent.ExecutionException e) { - throw new RuntimeException("Execution excetion", e); + throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous create VM snapshot job", e); } Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob()); @@ -660,7 +660,7 @@ public class VMSnapshotManagerImpl extends MutualExclusiveIdsManagerBase impleme } catch (InterruptedException e) { throw new RuntimeException("Operation is interrupted", e); } catch (java.util.concurrent.ExecutionException e) { - throw new RuntimeException("Execution excetion", e); + throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous delete VM snapshot job", e); } Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob()); @@ -785,7 +785,7 @@ public class VMSnapshotManagerImpl extends MutualExclusiveIdsManagerBase impleme } catch (InterruptedException e) { throw new RuntimeException("Operation is interrupted", e); } catch (java.util.concurrent.ExecutionException e) { - throw new RuntimeException("Execution excetion", e); + throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous revert to snapshot job", e); } Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob()); @@ -1036,7 +1036,7 @@ public class VMSnapshotManagerImpl extends MutualExclusiveIdsManagerBase impleme } catch (InterruptedException e) { throw new RuntimeException("Operation is interrupted", e); } catch (java.util.concurrent.ExecutionException e) { - throw new RuntimeException("Execution excetion", e); + throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous delete snapshots job", e); } Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob());