Skip to content

Commit

Permalink
fix bug where arg was wrongly appended
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Geens committed Sep 19, 2024
1 parent 4653ae5 commit 9fbf089
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/eosclient/eosbinary/eosbinary.go
Original file line number Diff line number Diff line change
Expand Up @@ -747,10 +747,12 @@ func (c *Client) writeFile(ctx context.Context, auth eosclient.Authorization, pa
if auth.Token != "" {
args[4] += "?authz=" + auth.Token
} else if auth.Role.UID != "" && auth.Role.GID != "" {
args = append(args, fmt.Sprintf("-ODeos.ruid=%s&eos.rgid=%s&eos.app=%s", auth.Role.UID, auth.Role.GID, app))
queryParams := fmt.Sprintf("-ODeos.ruid=%s&eos.rgid=%s&eos.app=%s", auth.Role.UID, auth.Role.GID, app)

if disableVersioning {
args = append(args, "&eos.versioning=0")
queryParams += "&eos.versioning=0"
}
args = append(args, queryParams)
}

_, _, err := c.executeXRDCopy(ctx, args)
Expand Down

0 comments on commit 9fbf089

Please sign in to comment.