mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-03 10:38:58 +09:00
M #-: Check if plan is nullptr (consistency check)
This commit is contained in:
1 file changed
+10
@@ -316,6 +316,16 @@ void PlanManager::action_finished(int cid, int vid, PlanState state)
|
||||
{
|
||||
auto plan = plan_pool->get(cid);
|
||||
|
||||
if (!plan)
|
||||
{
|
||||
if (cid != -1)
|
||||
{
|
||||
action_finished(-1, vid, state);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (plan->action_finished(vid, state))
|
||||
{
|
||||
plan->check_completed();
|
||||
|
||||
Reference in new issue
Block a user