Fix run_parser.py to work with the db updates
This commit is contained in:
parent
ba17e5286b
commit
1cc0f413ec
|
@ -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
|
||||
|
|
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in New Issue