Skip to content

Commit

Permalink
Fix quota Json
Browse files Browse the repository at this point in the history
  • Loading branch information
mickours committed Apr 26, 2024
1 parent 74874ce commit f3f9436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connectors/oar.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (OAR) Refill(nbResources int) error {
}
// quotas format. Use * for all in, Use -1 in values for "no limit":
// "<Queue>, <project>, <job_type>, <user>": [<Maximum used resources>, <Max running job>, <Max resource per hours>]
quota := fmt.Sprintf("{\"quotas\": \"*,*,*,*\": [-1, %d, -1]}", quotaResource)
quota := fmt.Sprintf("{\"quotas\": {\"*,*,*,*\": [-1, %d, -1]}}", quotaResource)
cmd := fmt.Sprintf("echo '%s' > /etc/oar/quotas.json", quota)
_, err := ExecuteCommand(cmd)
if err != nil {
Expand Down

0 comments on commit f3f9436

Please sign in to comment.