mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-10 01:17:40 +03:00
Feature #4217: the zie was not being set in the image template
(cherry picked from commit 756cd88772
)
This commit is contained in:
parent
6a0b71e9dd
commit
49e87d9b44
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user