summaryrefslogtreecommitdiffstats
path: root/nova/openstack
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2012-07-20 12:14:32 +0100
committerDaniel P. Berrange <berrange@redhat.com>2012-07-20 13:47:02 +0100
commit2766ee2b6ed68f1784aad1b41e81baa75cc305df (patch)
tree474caeff58cf7ed7e5a780e561867a9f09cda7f0 /nova/openstack
parent1ec856db22c798bffbf0f7d5def0e880a8fc9842 (diff)
downloadnova-2766ee2b6ed68f1784aad1b41e81baa75cc305df.tar.gz
nova-2766ee2b6ed68f1784aad1b41e81baa75cc305df.tar.xz
nova-2766ee2b6ed68f1784aad1b41e81baa75cc305df.zip
Refactor libvirt imagebackend module to reduce code duplication
Currently each subclass of the Image class in imagebackend, repeats the impl of the 'libvirt_info' method. These methods are almost identical, only varying on two per-class settings. By providing the driver_format and source_type to the Image class constructor, it is possible to get to a single impl of the 'libvirt_info' method. Change-Id: I0807eed7f03aedf4980eedeb70195076ed5f4710 Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions