summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--Authors1
-rw-r--r--nova/virt/libvirt/connection.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/Authors b/Authors
index fb6f98e02..304eb2667 100644
--- a/Authors
+++ b/Authors
@@ -48,6 +48,7 @@ Daniel P. Berrange <berrange@redhat.com>
Dave Lapsley <dlapsley@nicira.com>
Dave Walker <Dave.Walker@canonical.com>
David Pravec <David.Pravec@danix.org>
+David Shrewsbury <shrewsbury.dave@gmail.com>
David Subiros <david.perez5@hp.com>
Dean Troyer <dtroyer@gmail.com>
Deepak Garg <deepak.garg@citrix.com>
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")