Skip to content

Commit

Permalink
Changed deletetion of path
Browse files Browse the repository at this point in the history
  • Loading branch information
JarcauCristian committed Feb 25, 2024
1 parent ba243ae commit 8b62c72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ func (minioInstance *MinIO) deleteFile(datasetPath string, temp bool) error {
}

for _, v := range healthyInstances {
cmdArgs := []string{"./mc", "rm", "--recursive", v + "/" + path, "--json"}
cmdArgs := []string{"./mc", "rm", "--recursive", v + "/" + path, "--json", "--force"}

cmd := exec.Command(cmdArgs[0], cmdArgs[1:]...)
var stdout bytes.Buffer
Expand Down
7 changes: 2 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package main

import (
"crypto/tls"
"encoding/json"
"fmt"
"github.com/gin-gonic/gin"
Expand Down Expand Up @@ -605,11 +604,9 @@ func main() {
}

func verifyToken(tokenString string) bool {
tr := &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
}
tr := &http.Transport{}
client := &http.Client{Transport: tr}
req, _ := http.NewRequest("GET", "https://62.72.21.79:8442/auth/realms/react-keycloak/protocol/openid-connect/userinfo", nil)
req, _ := http.NewRequest("GET", "https://keycloak.sedimark.work/auth/realms/react-keycloak/protocol/openid-connect/userinfo", nil)
req.Header.Set("Authorization", fmt.Sprintf("Bearer %s", tokenString))
response, err := client.Do(req)
if err != nil {
Expand Down

0 comments on commit 8b62c72

Please sign in to comment.