Skip to content

Commit bb8f8fb

Browse files
committed
Expose getPrimaryDataStore(String uuid) through the DatastoreManager interface so it can be used clients.
1 parent a941370 commit bb8f8fb

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎engine/api/src/org/apache/cloudstack/engine/subsystem/api/storage/DataStoreManager.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ public interface DataStoreManager {
2727

2828
DataStore getPrimaryDataStore(long storeId);
2929

30+
DataStore getPrimaryDataStore(String storeUuid);
31+
3032
DataStore getDataStore(String uuid, DataStoreRole role);
3133

3234
List<DataStore> getImageStoresByScope(ZoneScope scope);

‎engine/storage/src/org/apache/cloudstack/storage/datastore/DataStoreManagerImpl.java‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ public DataStore getPrimaryDataStore(long storeId) {
8787
return primaryStoreMgr.getPrimaryDataStore(storeId);
8888
}
8989

90+
@Override
91+
public DataStore getPrimaryDataStore(String storeUuid) {
92+
return primaryStoreMgr.getPrimaryDataStore(storeUuid);
93+
}
94+
9095
@Override
9196
public List<DataStore> getImageCacheStores(Scope scope) {
9297
return imageDataStoreMgr.listImageCacheStores(scope);

0 commit comments

Comments
 (0)