Delete any endpoint configuration when using s3

This commit is contained in:
Girish Ramakrishnan
2018-07-30 07:29:20 -07:00
parent eb74aaff3b
commit d0b17f7e7b
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -218,6 +218,7 @@ angular.module('Application').controller('BackupsController', ['$scope', '$locat
if (backupConfig.provider === 's3') {
if ($scope.configureBackup.region) backupConfig.region = $scope.configureBackup.region;
delete backupConfig.endpoint;
} else if (backupConfig.provider === 'minio' || backupConfig.provider === 's3-v4-compat') {
backupConfig.region = 'us-east-1';
backupConfig.acceptSelfSignedCerts = $scope.configureBackup.acceptSelfSignedCerts;