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

feature #4320: Do not add multiple CREATED_BY attributes

This commit is contained in:
Ruben S. Montero 2016-05-03 10:21:33 +02:00
parent 058e23c37a
commit 6db32d4470
2 changed files with 1 additions and 2 deletions

View File

@ -638,7 +638,6 @@ void VirtualMachineAction::request_execute(xmlrpc_c::paramList const& paramList,
default:
att.resp_msg = "Internal error. Action result not defined";
failure_response(INTERNAL, att);
}

View File

@ -4797,7 +4797,7 @@ int VirtualMachine::generate_token_context(VectorAttribute * context, string& e)
context->replace("VMID", oid);
// Store the original owner to compute token_password in case of a chown
add_template_attribute("CREATED_BY", uid);
replace_template_attribute("CREATED_BY", uid);
return 0;
}