mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-06 13:17:42 +03:00
B #2625: remove unmanaged images references from core
This commit is contained in:
parent
cc9e9b725e
commit
e60bb6d5f2
@ -191,18 +191,6 @@ public:
|
|||||||
return (persistent_img == 1);
|
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
|
* Check the PERSISTENT attribute in an image Template, if not set the
|
||||||
* DEFAULT_IMAGE_PERSISTENT and DEFAULT_IMAGE_PERSISTENT_NEW are check in
|
* DEFAULT_IMAGE_PERSISTENT and DEFAULT_IMAGE_PERSISTENT_NEW are check in
|
||||||
|
@ -118,15 +118,6 @@ Request::ErrorCode ImagePersistent::request_execute(
|
|||||||
|
|
||||||
ds_id = image->get_ds_id();
|
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();
|
image->unlock();
|
||||||
|
|
||||||
ds = dspool->get_ro(ds_id);
|
ds = dspool->get_ro(ds_id);
|
||||||
|
Loading…
Reference in New Issue
Block a user