Displaying 2 results from an estimated 2 matches for "a_vm".
Did you mean:
_vm
2009 Jun 29
0
[PATCH server] REVISED Vm state change auditing/accounting
...Vm::STATE_RESUMING,
+ Vm::STATE_SAVING,
+ Vm::STATE_RESTORING,
+ Vm::STATE_MIGRATING]
+
+ AUDIT_NON_RUNNING_STATES = Vm::ALL_STATES - AUDIT_RUNNING_STATES - [Vm::STATE_UNREACHABLE]
+
+ def after_save(a_vm)
+ if a_vm.changed?
+ change = a_vm.changes['state']
+ if change
+ event = VmStateChangeEvent.new({ :vm => a_vm,
+ :from_state => change[0],
+ :to_state => change[1]})
+ event...
2009 Jun 24
1
[PATCH server] Vm state change auditing/accounting
...Vm::STATE_RESUMING,
+ Vm::STATE_SAVING,
+ Vm::STATE_RESTORING,
+ Vm::STATE_MIGRATING]
+
+ AUDIT_NON_RUNNING_STATES = Vm::ALL_STATES - AUDIT_RUNNING_STATES - [Vm::STATE_UNREACHABLE]
+
+ def after_save(a_vm)
+ if a_vm.changed?
+ change = a_vm.changes['state']
+ if change
+ event = VmStateChangeEvent.new({ :vm => a_vm,
+ :from_state => change[0],
+ :to_state => change[1]})
+ event...