Skip to content

Commit 95cbb79

Browse files
pborrelichipchilders
authored andcommitted
Fixed Primary typo
1 parent 69b0c14 commit 95cbb79

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

engine/storage/integration-test/test/org/apache/cloudstack/storage/test/DirectAgentTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import javax.inject.Inject;
2424

2525
import org.apache.cloudstack.storage.to.ImageDataStoreTO;
26-
import org.apache.cloudstack.storage.to.ImageOnPrimayDataStoreTO;
26+
import org.apache.cloudstack.storage.to.ImageOnPrimaryDataStoreTO;
2727
import org.apache.cloudstack.storage.to.PrimaryDataStoreTO;
2828
import org.apache.cloudstack.storage.to.TemplateTO;
2929
import org.mockito.Mockito;
@@ -126,7 +126,7 @@ public void testInitResource() {
126126

127127
@Test
128128
public void testDownloadTemplate() {
129-
ImageOnPrimayDataStoreTO image = Mockito.mock(ImageOnPrimayDataStoreTO.class);
129+
ImageOnPrimaryDataStoreTO image = Mockito.mock(ImageOnPrimaryDataStoreTO.class);
130130
PrimaryDataStoreTO primaryStore = Mockito.mock(PrimaryDataStoreTO.class);
131131
Mockito.when(primaryStore.getUuid()).thenReturn(this.getLocalStorageUuid());
132132
Mockito.when(image.getPrimaryDataStore()).thenReturn(primaryStore);

engine/storage/src/org/apache/cloudstack/storage/command/CreateVolumeFromBaseImageCommand.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
*/
1919
package org.apache.cloudstack.storage.command;
2020

21-
import org.apache.cloudstack.storage.to.ImageOnPrimayDataStoreTO;
21+
import org.apache.cloudstack.storage.to.ImageOnPrimaryDataStoreTO;
2222
import org.apache.cloudstack.storage.to.VolumeTO;
2323

2424
import com.cloud.agent.api.Command;
2525

2626
public class CreateVolumeFromBaseImageCommand extends Command implements StorageSubSystemCommand {
2727
private final VolumeTO volume;
28-
private final ImageOnPrimayDataStoreTO image;
28+
private final ImageOnPrimaryDataStoreTO image;
2929

3030
public CreateVolumeFromBaseImageCommand(VolumeTO volume, String image) {
3131
this.volume = volume;
@@ -36,7 +36,7 @@ public VolumeTO getVolume() {
3636
return this.volume;
3737
}
3838

39-
public ImageOnPrimayDataStoreTO getImage() {
39+
public ImageOnPrimaryDataStoreTO getImage() {
4040
return this.image;
4141
}
4242

engine/storage/src/org/apache/cloudstack/storage/datastore/provider/DataStoreProviderManagerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public List<DataStoreProvider> getDataStoreProviders() {
6464
return null;
6565
}
6666

67-
public List<StorageProviderResponse> getPrimayrDataStoreProviders() {
67+
public List<StorageProviderResponse> getPrimaryDataStoreProviders() {
6868
List<StorageProviderResponse> providers = new ArrayList<StorageProviderResponse>();
6969
for (DataStoreProvider provider : providerMap.values()) {
7070
if (provider instanceof PrimaryDataStoreProvider) {
@@ -138,7 +138,7 @@ public List<StorageProviderResponse> getDataStoreProviders(String type) {
138138
throw new InvalidParameterValueException("Invalid parameter, need to specify type: either primary or image");
139139
}
140140
if (type.equalsIgnoreCase(DataStoreProvider.DataStoreProviderType.PRIMARY.toString())) {
141-
return this.getPrimayrDataStoreProviders();
141+
return this.getPrimaryDataStoreProviders();
142142
} else if (type.equalsIgnoreCase(DataStoreProvider.DataStoreProviderType.IMAGE.toString())) {
143143
return this.getImageDataStoreProviders();
144144
} else {

engine/storage/src/org/apache/cloudstack/storage/to/ImageOnPrimayDataStoreTO.java renamed to engine/storage/src/org/apache/cloudstack/storage/to/ImageOnPrimaryDataStoreTO.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020

2121
import org.apache.cloudstack.storage.volume.TemplateOnPrimaryDataStoreInfo;
2222

23-
public class ImageOnPrimayDataStoreTO {
23+
public class ImageOnPrimaryDataStoreTO {
2424
private final String pathOnPrimaryDataStore;
2525
private PrimaryDataStoreTO dataStore;
2626
private final TemplateTO template;
27-
public ImageOnPrimayDataStoreTO(TemplateOnPrimaryDataStoreInfo template) {
27+
public ImageOnPrimaryDataStoreTO(TemplateOnPrimaryDataStoreInfo template) {
2828
this.pathOnPrimaryDataStore = template.getPath();
2929
//this.dataStore = template.getPrimaryDataStore().getDataStoreTO();
3030
this.template = new TemplateTO(template.getTemplate());

plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerStorageResource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
import org.apache.cloudstack.storage.command.CreateVolumeFromBaseImageCommand;
4040
import org.apache.cloudstack.storage.command.StorageSubSystemCommand;
4141
import org.apache.cloudstack.storage.datastore.protocol.DataStoreProtocol;
42-
import org.apache.cloudstack.storage.to.ImageOnPrimayDataStoreTO;
42+
import org.apache.cloudstack.storage.to.ImageOnPrimaryDataStoreTO;
4343
import org.apache.cloudstack.storage.to.VolumeTO;
4444
import org.apache.http.HttpEntity;
4545
import org.apache.http.HttpResponse;
@@ -207,7 +207,7 @@ protected Answer execute(DeleteVolumeCommand cmd) {
207207

208208
protected Answer execute(CreateVolumeFromBaseImageCommand cmd) {
209209
VolumeTO volume = cmd.getVolume();
210-
ImageOnPrimayDataStoreTO baseImage = cmd.getImage();
210+
ImageOnPrimaryDataStoreTO baseImage = cmd.getImage();
211211
Connection conn = hypervisorResource.getConnection();
212212

213213
try {

0 commit comments

Comments
 (0)