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

Feature #4217: the zie was not being set in the image template

This commit is contained in:
Jaime Melis 2016-02-04 18:36:44 +01:00
parent 48f2f1c410
commit 756cd88772

View File

@ -289,6 +289,7 @@ void ImageAllocate::request_execute(xmlrpc_c::paramList const& params,
long long size_mb;
istringstream iss;
ostringstream oss;
string ds_name;
string ds_data;
@ -391,7 +392,7 @@ void ImageAllocate::request_execute(xmlrpc_c::paramList const& params,
if ( app == 0 )
{
att.resp_msg = "Cannot determine image SIZE: " + size_str;
att.resp_msg = "Cannot determine image SIZE.";
failure_response(INTERNAL, att);
delete tmpl;
@ -419,6 +420,9 @@ void ImageAllocate::request_execute(xmlrpc_c::paramList const& params,
market->to_xml(extra_data);
market->unlock();
oss << size_mb;
size_str = oss.str();
}
else
{
@ -446,7 +450,6 @@ void ImageAllocate::request_execute(xmlrpc_c::paramList const& params,
}
}
if (ds_check && (size_mb > avail))
{
att.resp_msg = "Not enough space in datastore";