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

Feature #1631: Fix history reason for migrate.

This commit is contained in:
Carlos Martín 2013-04-04 11:34:20 +02:00
parent 3e99db4a03
commit 4095acb7cc
2 changed files with 2 additions and 3 deletions

View File

@ -669,12 +669,11 @@ public:
* Sets the action that closed the history record in the previous host
* @param action that closed the history record in the previous host
*/
/*
void set_previous_history_action(History::VMAction action)
{
previous_history->action = action;
};
*/
// ------------------------------------------------------------------------
// Template
// ------------------------------------------------------------------------

View File

@ -225,7 +225,7 @@ void LifeCycleManager::migrate_action(int vid)
vm->set_stime(time(0));
vm->set_history_action(History::MIGRATE_ACTION);
vm->set_previous_history_action(History::MIGRATE_ACTION);
vmpool->update_history(vm);