Skip to content

Commit 0bb1616

Browse files
committed
Fixes issue with loading Capacity dashboard when mulitple backup providers configured
1 parent a6ccde4 commit 0bb1616

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server/src/main/java/org/apache/cloudstack/backup/BackupManagerImpl.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -972,10 +972,11 @@ public BackupProvider getBackupProvider(final String name) {
972972
if (StringUtils.isEmpty(name)) {
973973
throw new CloudRuntimeException("Invalid backup provider name provided");
974974
}
975-
if (!backupProvidersMap.containsKey(name)) {
975+
String[] backupProviderNames = name.split(",");
976+
if (!backupProvidersMap.containsKey(backupProviderNames[0])) {
976977
throw new CloudRuntimeException("Failed to find backup provider by the name: " + name);
977978
}
978-
return backupProvidersMap.get(name);
979+
return backupProvidersMap.get(backupProviderNames[0]);
979980
}
980981

981982
@Override

0 commit comments

Comments
 (0)