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

View File

@@ -94,6 +94,7 @@ app.controller('RestoreController', ['$scope', '$http', 'Client', function ($sco
if (backupConfig.provider === 's3') {
if ($scope.region) backupConfig.region = $scope.region;
delete backupConfig.endpoint;
} else if (backupConfig.provider === 'minio' || backupConfig.provider === 's3-v4-compat') {
backupConfig.region = 'us-east-1';
backupConfig.acceptSelfSignedCerts = $scope.acceptSelfSignedCerts;