]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Fix path to cloudinit directory
authorZane Bitter <zbitter@redhat.com>
Fri, 22 Jun 2012 15:30:28 +0000 (17:30 +0200)
committerZane Bitter <zbitter@redhat.com>
Fri, 22 Jun 2012 15:33:37 +0000 (17:33 +0200)
commit893cda431447a319809e2dd9f4ebd41ea012997b
treecaa5f48e4ab559f3445b55db96925fb829899468
parentfa7d89e5eda5fc5ad617cd19b9be3c7277692ab4
Fix path to cloudinit directory

The various path manipulations designed to search for the cloudinit
directory do not work with the current installation script, or when
heat-jeos is also installed. They also perform gratuitous manipulation of
sys.path (causing warning messages) and may pick up the cloudinit files
from a different location to the code that is actually running. Python
already knows which heat package we are using - just look for the directory
inside there.

This patch also tidies up the code for generating the user data.

Change-Id: I14add5f1670aea2562329ff1a1303320a35ff428
Signed-off-by: Zane Bitter <zbitter@redhat.com>
heat/engine/instance.py