From: Tomas Sedovic Date: Fri, 30 Mar 2012 13:20:37 +0000 (+0200) Subject: Fix run_parser.py to work with the db updates X-Git-Tag: 2014.1~2122 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=1cc0f413ecbf61b8d073ee625fbc8f3a3f67d01b;p=openstack-build%2Fheat-build.git Fix run_parser.py to work with the db updates --- diff --git a/bin/run-parser.py b/bin/run-parser.py index b59d84f5..0f3094b3 100755 --- a/bin/run-parser.py +++ b/bin/run-parser.py @@ -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 diff --git a/heat/engine/resources.py b/heat/engine/resources.py index 1d3f0d28..e845445f 100644 --- a/heat/engine/resources.py +++ b/heat/engine/resources.py @@ -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')