mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Removed redundant getInstallPath to use getPath in VolumeInfo.
This commit is contained in:
parent
fc74d76696
commit
df7a56d63f
@ -28,5 +28,4 @@ public interface VolumeInfo extends DataObject, Volume {
|
||||
public HypervisorType getHypervisorType();
|
||||
public Long getLastPoolId();
|
||||
public String getAttachedVmName();
|
||||
public String getInstallPath();
|
||||
}
|
||||
|
||||
@ -87,6 +87,7 @@ public class DownloadCommand extends AbstractDownloadCommand implements Internal
|
||||
super(volume.getName(), url, format, volume.getAccountId());
|
||||
this.checksum = checkSum;
|
||||
this.id = volume.getVolumeId();
|
||||
this.installPath = volume.getPath();
|
||||
this._store = volume.getDataStore();
|
||||
this.maxDownloadSizeInBytes = maxDownloadSizeInBytes;
|
||||
this.resourceType = ResourceType.VOLUME;
|
||||
|
||||
@ -120,11 +120,6 @@ public class VolumeObject implements VolumeInfo {
|
||||
return volumeVO.getSize();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInstallPath() {
|
||||
DataObjectInStore obj = ojbectInStoreMgr.findObject(this, this.dataStore);
|
||||
return obj.getInstallPath();
|
||||
}
|
||||
|
||||
public long getVolumeId() {
|
||||
return volumeVO.getId();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user