mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Bug #805: Saveas images are now left in lock state
(cherry picked from commit 4ff07776d812cc86cd900f6c38ddf5862ec7618a)
This commit is contained in:
parent
459b41fb42
commit
954715074a
@ -382,11 +382,16 @@ int ImageManager::register_image(int iid)
|
||||
}
|
||||
else
|
||||
{
|
||||
img->set_state(Image::READY);
|
||||
ipool->update(img);
|
||||
string source = img->get_source();
|
||||
|
||||
oss << "Using source " << img->get_source()
|
||||
<< " from template for image " << img->get_name();
|
||||
if (source != "-") //SAVE_AS IMAGE DO NOT ENABLE THE IMAGE
|
||||
{
|
||||
img->set_state(Image::READY);
|
||||
ipool->update(img);
|
||||
|
||||
oss << "Using source " << img->get_source()
|
||||
<< " from template for image " << img->get_name();
|
||||
}
|
||||
}
|
||||
}
|
||||
else //PATH -> COPY TO REPOSITORY AS SOURCE
|
||||
|
Loading…
x
Reference in New Issue
Block a user