Fix run_parser.py to work with the db updates

This commit is contained in:
Tomas Sedovic 2012-03-30 15:20:37 +02:00
parent ba17e5286b
commit 1cc0f413ec
2 changed files with 6 additions and 0 deletions

View File

@ -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

View 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')