mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-23 22:50:09 +03:00
Merge branch 'master' of git.opennebula.org:one
This commit is contained in:
commit
a857c5dadf
@ -83,16 +83,10 @@ public:
|
||||
VectorAttribute **va,
|
||||
map<string, Attribute *>::iterator& it)
|
||||
{
|
||||
it = attributes.end();
|
||||
it = attributes.begin();
|
||||
return get_quota(id, va);
|
||||
}
|
||||
|
||||
/**
|
||||
* Overrides base to not delete anything
|
||||
* @param it The quota iterator, ignored
|
||||
*/
|
||||
void del(map<string, Attribute *>::iterator& it){}
|
||||
|
||||
protected:
|
||||
static const char * VM_METRICS[];
|
||||
|
||||
|
@ -92,7 +92,16 @@ int ImageManager::acquire_image(Image *img, string& error)
|
||||
{
|
||||
case Image::READY:
|
||||
img->inc_running();
|
||||
img->set_state(Image::USED);
|
||||
|
||||
if ( img->isPersistent() )
|
||||
{
|
||||
img->set_state(Image::USED_PERS);
|
||||
}
|
||||
else
|
||||
{
|
||||
img->set_state(Image::USED);
|
||||
}
|
||||
|
||||
ipool->update(img);
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user