summaryrefslogtreecommitdiffstats
path: root/nova
diff options
context:
space:
mode:
authorDavid Shrewsbury <shrewsbury.dave@gmail.com>2012-06-26 12:15:33 -0400
committerDavid Shrewsbury <shrewsbury.dave@gmail.com>2012-06-26 12:19:13 -0400
commitc4ddd0fff52bf83fc65db43ff5850116c7f29f68 (patch)
tree5b3be551d55b6ba62fc5612c4a70e380da00133a /nova
parentca1f1d39b8ee85f55d5b656f7db946f855be5cb2 (diff)
downloadnova-c4ddd0fff52bf83fc65db43ff5850116c7f29f68.tar.gz
nova-c4ddd0fff52bf83fc65db43ff5850116c7f29f68.tar.xz
nova-c4ddd0fff52bf83fc65db43ff5850116c7f29f68.zip
Fix invalid variable reference.
Correct variable name is 'source_type', but just happened to work because the default value for the variable is also 'mount'. Change-Id: Ifba9ce0ef3052e1b5e07f90d236bfcf24ca6a608
Diffstat (limited to 'nova')
-rw-r--r--nova/virt/libvirt/connection.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/virt/libvirt/connection.py b/nova/virt/libvirt/connection.py
index ea0e60573..cffd22661 100644
--- a/nova/virt/libvirt/connection.py
+++ b/nova/virt/libvirt/connection.py
@@ -1514,7 +1514,7 @@ class LibvirtDriver(driver.ComputeDriver):
if FLAGS.libvirt_type == "lxc":
fs = config.LibvirtConfigGuestFilesys()
- fs.type = "mount"
+ fs.source_type = "mount"
fs.source_dir = os.path.join(FLAGS.instances_path,
instance['name'],
"rootfs")