Skip to content

Commit 95f4023

Browse files
authored
PLT-1498:Removed minio cred validation in bsl. (#550)
1 parent b04a9de commit 95f4023

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

spectrocloud/common_backup_storage_location.go

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,8 @@ func S3BackupStorageLocationCreate(d *schema.ResourceData, c *client.V1Client) d
5353
func MinioBackupStorageLocationCreate(d *schema.ResourceData, c *client.V1Client) diag.Diagnostics {
5454
var diags diag.Diagnostics
5555

56-
bsl, bslCred := toMinioBackupStorageLocation(d)
57-
if err := c.ValidateS3BackupStorageLocation(bslCred); err != nil {
58-
return diag.FromErr(err)
59-
}
56+
bsl, _ := toMinioBackupStorageLocation(d)
57+
// No credential validation required for minio
6058
uid, err := c.CreateMinioBackupStorageLocation(bsl)
6159
if err != nil {
6260
return diag.FromErr(err)
@@ -333,10 +331,8 @@ func S3BackupStorageLocationUpdate(d *schema.ResourceData, c *client.V1Client) d
333331

334332
func MinioBackupStorageLocationUpdate(d *schema.ResourceData, c *client.V1Client) diag.Diagnostics {
335333
var diags diag.Diagnostics
336-
bsl, bslCred := toMinioBackupStorageLocation(d)
337-
if err := c.ValidateS3BackupStorageLocation(bslCred); err != nil {
338-
return diag.FromErr(err)
339-
}
334+
bsl, _ := toMinioBackupStorageLocation(d)
335+
// No credential validation required for minio
340336
err := c.UpdateMinioBackupStorageLocation(d.Id(), bsl)
341337
if err != nil {
342338
return diag.FromErr(err)

0 commit comments

Comments
 (0)