diff options
author | Dan Smith <danms@us.ibm.com> | 2012-11-02 13:48:15 -0700 |
---|---|---|
committer | Dan Smith <danms@us.ibm.com> | 2012-11-02 13:48:15 -0700 |
commit | 8b283c2f83ebd11b5920e28036ca1aa4bea63df4 (patch) | |
tree | cfa4e9ea8d7393b1b8e9cdbfa21fc3d56aa12a5e /nova/test.py | |
parent | 8a134759982a497118acbee328a01b00e9cb2a44 (diff) | |
download | nova-8b283c2f83ebd11b5920e28036ca1aa4bea63df4.tar.gz nova-8b283c2f83ebd11b5920e28036ca1aa4bea63df4.tar.xz nova-8b283c2f83ebd11b5920e28036ca1aa4bea63df4.zip |
Remove unnecessary db call from xenapi/vmops
There are two db.instance_type_get() calls in xenapi
that don't need to be there. By fetching the info out of
the instance['instance_type'] field, we can avoid the lookup
(and adding interfaces to support this in VirtAPI).
Note that the tests require a little extra fakeage to
replicate what is happening in the real db driver.
Change-Id: I727c98fe18ca28f1db62ece2abfd50b4e13852ba
Diffstat (limited to 'nova/test.py')
0 files changed, 0 insertions, 0 deletions