Skip to content

Commit 6eb27da

Browse files
Fix spelling in Java and Python files; update the ignored words list codespell.txt (#11285)
Co-authored-by: dahn <daan.hoogland@gmail.com>
1 parent 33cfede commit 6eb27da

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

.github/linters/codespell.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,15 +183,12 @@ encryted
183183
enebled
184184
enmpty
185185
entires
186-
enviornment
187186
environmnet
188187
equivalant
189188
erro
190189
erronous
191190
everthing
192191
everytime
193-
excetion
194-
excption
195192
excute
196193
execept
197194
execption

python/lib/cloudutils/utilities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def writeProgressBar(msg, result):
9898
sys.stdout.flush()
9999

100100
class UnknownSystemException(Exception):
101-
"This Excption is raised if the current operating enviornment is unknown"
101+
"This Exception is raised if the current operating environment is unknown"
102102
pass
103103

104104
class Distribution:

server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3113,7 +3113,7 @@ public Volume detachVolumeFromVM(DetachVolumeCmd cmmd) {
31133113
} catch (InterruptedException e) {
31143114
throw new RuntimeException("Operation is interrupted", e);
31153115
} catch (ExecutionException e) {
3116-
throw new RuntimeException("Execution excetion", e);
3116+
throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous detach volume job", e);
31173117
}
31183118

31193119
Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob());
@@ -3548,7 +3548,7 @@ public Volume migrateVolume(MigrateVolumeCmd cmd) {
35483548
} catch (InterruptedException e) {
35493549
throw new RuntimeException("Operation is interrupted", e);
35503550
} catch (ExecutionException e) {
3551-
throw new RuntimeException("Execution excetion", e);
3551+
throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous migrate volume job", e);
35523552
}
35533553

35543554
Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob());
@@ -3895,7 +3895,7 @@ private Snapshot takeSnapshotInternal(Long volumeId, Long policyId, Long snapsho
38953895
} catch (InterruptedException e) {
38963896
throw new RuntimeException("Operation is interrupted", e);
38973897
} catch (ExecutionException e) {
3898-
throw new RuntimeException("Execution excetion", e);
3898+
throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous take volume snapshot job", e);
38993899
}
39003900

39013901
Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob());
@@ -4259,7 +4259,7 @@ public String extractVolume(ExtractVolumeCmd cmd) {
42594259
} catch (InterruptedException e) {
42604260
throw new RuntimeException("Operation is interrupted", e);
42614261
} catch (ExecutionException e) {
4262-
throw new RuntimeException("Execution excetion", e);
4262+
throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous extract volume job", e);
42634263
}
42644264

42654265
Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob());

server/src/main/java/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ public VMSnapshot createVMSnapshot(Long vmId, Long vmSnapshotId, Boolean quiesce
550550
} catch (InterruptedException e) {
551551
throw new RuntimeException("Operation is interrupted", e);
552552
} catch (java.util.concurrent.ExecutionException e) {
553-
throw new RuntimeException("Execution excetion", e);
553+
throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous create VM snapshot job", e);
554554
}
555555

556556
Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob());
@@ -660,7 +660,7 @@ public boolean deleteVMSnapshot(Long vmSnapshotId) {
660660
} catch (InterruptedException e) {
661661
throw new RuntimeException("Operation is interrupted", e);
662662
} catch (java.util.concurrent.ExecutionException e) {
663-
throw new RuntimeException("Execution excetion", e);
663+
throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous delete VM snapshot job", e);
664664
}
665665

666666
Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob());
@@ -785,7 +785,7 @@ public UserVm revertToSnapshot(Long vmSnapshotId) throws InsufficientCapacityExc
785785
} catch (InterruptedException e) {
786786
throw new RuntimeException("Operation is interrupted", e);
787787
} catch (java.util.concurrent.ExecutionException e) {
788-
throw new RuntimeException("Execution excetion", e);
788+
throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous revert to snapshot job", e);
789789
}
790790

791791
Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob());
@@ -1036,7 +1036,7 @@ public boolean deleteAllVMSnapshots(long vmId, VMSnapshot.Type type) {
10361036
} catch (InterruptedException e) {
10371037
throw new RuntimeException("Operation is interrupted", e);
10381038
} catch (java.util.concurrent.ExecutionException e) {
1039-
throw new RuntimeException("Execution excetion", e);
1039+
throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous delete snapshots job", e);
10401040
}
10411041

10421042
Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob());

0 commit comments

Comments
 (0)