Skip to content

Commit 174f92d

Browse files
committed
trim spaces when checking for commas
1 parent de23052 commit 174f92d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/main/java/org/apache/cloudstack/backup/BackupManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public interface BackupManager extends BackupService, Configurable, PluggableSer
152152
BackupOffering updateBackupOffering(UpdateBackupOfferingCmd updateBackupOfferingCmd);
153153

154154
static void validateBackupProviderConfig(String value) {
155-
if (value != null && (value.contains(",") || value.contains(" "))) {
155+
if (value != null && (value.trim().contains(",") || value.contains(" "))) {
156156
throw new IllegalArgumentException("Multiple backup provider plugins are not supported. Please provide a single plugin value.");
157157
}
158158
List<String> validPlugins = List.of("dummy", "veeam", "networker", "nas");

0 commit comments

Comments
 (0)