]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Fix run_parser.py to work with the db updates
authorTomas Sedovic <tomas@sedovic.cz>
Fri, 30 Mar 2012 13:20:37 +0000 (15:20 +0200)
committerTomas Sedovic <tomas@sedovic.cz>
Fri, 30 Mar 2012 13:20:37 +0000 (15:20 +0200)
bin/run-parser.py
heat/engine/resources.py

index b59d84f56a4ab52f0b1277f4ff91dd160808b54d..0f3094b356716fa41cd555e22a9875226f19f860 100755 (executable)
@@ -1,5 +1,6 @@
 #!/usr/bin/python
 
+import gettext
 import sys
 import os.path
 import json
@@ -10,6 +11,8 @@ possible_topdir = os.path.normpath(os.path.join(os.path.abspath(sys.argv[0]),
 if os.path.exists(os.path.join(possible_topdir, 'heat', '__init__.py')):
     sys.path.insert(0, possible_topdir)
 
+gettext.install('heat', unicode=1)
+
 from heat.engine import parser
 
 parameter_count = 1
index 1d3f0d28802c1fe181967df3d2be104d42bbd1ef..e845445faa944092dc02e5d32ce9bdb608f6ab6e 100644 (file)
@@ -19,6 +19,9 @@ import time
 from novaclient.v1_1 import client
 
 from heat.db import api as db_api
+from heat.common.config import HeatEngineConfigOpts
+
+db_api.configure(HeatEngineConfigOpts())
 
 logger = logging.getLogger('heat.engine.resources')