1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

B #5606: GOCA - fix ACL method parameter (#5609)

Signed-off-by: Pierre Lafievre <pierre.lafievre@iguanesolutions.com>
(cherry picked from commit 30a34433cc69d385e6e0aee00c3ea226e203a8a8)
This commit is contained in:
Pierre Lafievre 2021-11-10 16:35:41 +01:00 committed by Ruben S. Montero
parent 714fe8edec
commit 606f0dbf82
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -60,14 +60,14 @@ func (ac *ACLsController) CreateRule(user, resource, rights string, zone ...stri
}
parameters := []interface{}{
"one.acl.addrule", user, resource, rights,
user, resource, rights,
}
for _, z := range zone {
parameters = append(parameters, z)
}
response, err := ac.c.Client.Call(parameters...)
response, err := ac.c.Client.Call("one.acl.addrule", parameters...)
if err != nil {
return -1, err
}