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:
parent
3e99db4a03
commit
4095acb7cc
@ -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
|
||||
// ------------------------------------------------------------------------
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user