diff options
author | Dan Smith <danms@us.ibm.com> | 2013-05-30 09:43:34 -0700 |
---|---|---|
committer | Dan Smith <danms@us.ibm.com> | 2013-06-07 11:43:37 -0700 |
commit | d431218f6aaae4541bd75e1a04a83e06f43e15bd (patch) | |
tree | 4fa8ec464e52d13efe7b451cf4cb7f8f2adbdbec /nova/utils.py | |
parent | 168ff33d104c76606079748ea09cb97ff8fc97fe (diff) | |
download | nova-d431218f6aaae4541bd75e1a04a83e06f43e15bd.tar.gz nova-d431218f6aaae4541bd75e1a04a83e06f43e15bd.tar.xz nova-d431218f6aaae4541bd75e1a04a83e06f43e15bd.zip |
Make xenapi use Instance object for host_maintenance_mode()
This makes xenapi grab an Instance object in host_maintenance_mode()
instead of calling into virtapi. This removes the one and only use
of instance_get_by_uuid() in nova/virt.
The existing tests for host_maintenance_mode() need no changes
since they just stub out the database call that eventually gets
called in the same way.
Related to blueprint unified-object-model
Change-Id: Iff4b5de1741653fad8c59e311341aeb3d0bb3539
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions