1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-05 09:17:41 +03:00

B #2625: remove unmanaged images references from core

This commit is contained in:
Sergio Semedi Barranco 2018-11-23 16:42:12 +01:00 committed by Ruben S. Montero
parent cc9e9b725e
commit e60bb6d5f2
2 changed files with 0 additions and 21 deletions

View File

@ -191,18 +191,6 @@ public:
return (persistent_img == 1);
};
bool is_managed() const
{
bool one_managed;
if (get_template_attribute("OPENNEBULA_MANAGED", one_managed) == false)
{
one_managed = true;
}
return one_managed;
}
/**
* Check the PERSISTENT attribute in an image Template, if not set the
* DEFAULT_IMAGE_PERSISTENT and DEFAULT_IMAGE_PERSISTENT_NEW are check in

View File

@ -118,15 +118,6 @@ Request::ErrorCode ImagePersistent::request_execute(
ds_id = image->get_ds_id();
if ( !image->is_managed() )
{
att.resp_msg = "Cannot change persistent state for non-managed images";
image->unlock();
return ACTION;
}
image->unlock();
ds = dspool->get_ro(ds_id);