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
This commit is contained in:
David Shrewsbury 2012-06-26 12:15:33 -04:00
parent ca1f1d39b8
commit c4ddd0fff5
2 changed files with 2 additions and 1 deletions

View File

@ -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>

View File

@ -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")