Skip to content

Commit 8f03edf

Browse files
jbamptonDaanHoogland
authored andcommitted
Fix spelling in Java and Python files; update the ignored words list codespell.txt (apache#11285)
Co-authored-by: dahn <[email protected]>
1 parent 2cda9a1 commit 8f03edf

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
@@ -3195,7 +3195,7 @@ public Volume detachVolumeFromVM(DetachVolumeCmd cmmd) {
31953195
} catch (InterruptedException e) {
31963196
throw new RuntimeException("Operation is interrupted", e);
31973197
} catch (ExecutionException e) {
3198-
throw new RuntimeException("Execution excetion", e);
3198+
throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous detach volume job", e);
31993199
}
32003200

32013201
Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob());
@@ -3703,7 +3703,7 @@ public Volume migrateVolume(MigrateVolumeCmd cmd) {
37033703
} catch (InterruptedException e) {
37043704
throw new RuntimeException("Operation is interrupted", e);
37053705
} catch (ExecutionException e) {
3706-
throw new RuntimeException("Execution excetion", e);
3706+
throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous migrate volume job", e);
37073707
}
37083708

37093709
Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob());
@@ -4050,7 +4050,7 @@ private Snapshot takeSnapshotInternal(Long volumeId, Long policyId, Long snapsho
40504050
} catch (InterruptedException e) {
40514051
throw new RuntimeException("Operation is interrupted", e);
40524052
} catch (ExecutionException e) {
4053-
throw new RuntimeException("Execution excetion", e);
4053+
throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous take volume snapshot job", e);
40544054
}
40554055

40564056
Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob());
@@ -4415,7 +4415,7 @@ public String extractVolume(ExtractVolumeCmd cmd) {
44154415
} catch (InterruptedException e) {
44164416
throw new RuntimeException("Operation is interrupted", e);
44174417
} catch (ExecutionException e) {
4418-
throw new RuntimeException("Execution excetion", e);
4418+
throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous extract volume job", e);
44194419
}
44204420

44214421
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
@@ -558,7 +558,7 @@ public VMSnapshot createVMSnapshot(Long vmId, Long vmSnapshotId, Boolean quiesce
558558
} catch (InterruptedException e) {
559559
throw new RuntimeException("Operation is interrupted", e);
560560
} catch (java.util.concurrent.ExecutionException e) {
561-
throw new RuntimeException("Execution excetion", e);
561+
throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous create VM snapshot job", e);
562562
}
563563

564564
Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob());
@@ -668,7 +668,7 @@ public boolean deleteVMSnapshot(Long vmSnapshotId) {
668668
} catch (InterruptedException e) {
669669
throw new RuntimeException("Operation is interrupted", e);
670670
} catch (java.util.concurrent.ExecutionException e) {
671-
throw new RuntimeException("Execution excetion", e);
671+
throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous delete VM snapshot job", e);
672672
}
673673

674674
Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob());
@@ -793,7 +793,7 @@ public UserVm revertToSnapshot(Long vmSnapshotId) throws InsufficientCapacityExc
793793
} catch (InterruptedException e) {
794794
throw new RuntimeException("Operation is interrupted", e);
795795
} catch (java.util.concurrent.ExecutionException e) {
796-
throw new RuntimeException("Execution excetion", e);
796+
throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous revert to snapshot job", e);
797797
}
798798

799799
Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob());
@@ -1044,7 +1044,7 @@ public boolean deleteAllVMSnapshots(long vmId, VMSnapshot.Type type) {
10441044
} catch (InterruptedException e) {
10451045
throw new RuntimeException("Operation is interrupted", e);
10461046
} catch (java.util.concurrent.ExecutionException e) {
1047-
throw new RuntimeException("Execution excetion", e);
1047+
throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous delete snapshots job", e);
10481048
}
10491049

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

0 commit comments

Comments
 (0)