mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-27 03:21:29 +03:00
feature #754: Encode template instead it's id in INSTANTIATE auth strings
This commit is contained in:
parent
37591934c6
commit
aa6f4c08d0
@ -62,8 +62,15 @@ void VMTemplateInstantiate::request_execute(xmlrpc_c::paramList const& paramList
|
||||
if ( att.uid != 0 )
|
||||
{
|
||||
AuthRequest ar(att.uid, att.gid);
|
||||
string tmpl_txt;
|
||||
|
||||
ar.add_auth(auth_object, id, ogid, auth_op, ouid, pub);
|
||||
|
||||
ar.add_auth(auth_object,
|
||||
tmpl->to_xml(tmpl_txt),
|
||||
ogid,
|
||||
auth_op,
|
||||
ouid,
|
||||
pub);
|
||||
|
||||
VirtualMachine::set_auth_request(att.uid, ar, tmpl);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user