Skip to content

Commit

Permalink
Fix run_parser.py to work with the db updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tomassedovic committed Mar 30, 2012
1 parent ba17e52 commit 1cc0f41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/run-parser.py
@@ -1,5 +1,6 @@
#!/usr/bin/python

import gettext
import sys
import os.path
import json
Expand All @@ -10,6 +11,8 @@
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
Expand Down
3 changes: 3 additions & 0 deletions heat/engine/resources.py
Expand Up @@ -19,6 +19,9 @@
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')

Expand Down

0 comments on commit 1cc0f41

Please sign in to comment.