]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Fix the handling of non-existing paste file
authorAngus Salkeld <asalkeld@redhat.com>
Tue, 28 May 2013 02:06:28 +0000 (12:06 +1000)
committerAngus Salkeld <asalkeld@redhat.com>
Tue, 28 May 2013 02:06:28 +0000 (12:06 +1000)
commit38f4de94142c80667f70f1f36b7484bdc42e410a
treec6107c80a39b83fb4b05e1f9bd7b68f500bbb8fb
parent82f5fa098a5e5b18d5e6a768c60422822348ae1a
Fix the handling of non-existing paste file

First only call find_file() by it's self so we can check for None
(abspath crashes if you pass it None)
We are already calling abspath at the return, so this
also prevents a double call to abspath.

If return None from _get_deployment_config_file() load_paste_app() will
print out a nice error message.

Change-Id: I451e090b7f08266ca824b5da228dafde55726d94
heat/common/config.py