From 1cc0f413ecbf61b8d073ee625fbc8f3a3f67d01b Mon Sep 17 00:00:00 2001 From: Tomas Sedovic Date: Fri, 30 Mar 2012 15:20:37 +0200 Subject: [PATCH] Fix run_parser.py to work with the db updates --- bin/run-parser.py | 3 +++ heat/engine/resources.py | 3 +++ 2 files changed, 6 insertions(+) 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') -- 2.45.2