summaryrefslogtreecommitdiff
path: root/heat_manage
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2014-10-11 15:37:47 +0200
committerGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2014-10-11 15:37:47 +0200
commit6c46a902b459a4a3cc1d5068c98f767b1045f348 (patch)
tree9f696f8f15d3cf14342af2cbb0fc6740245c19d7 /heat_manage
parente971bf9151991f2fb90d38d995312b7346017daf (diff)
downloadopenstack-ansible-modules-6c46a902b459a4a3cc1d5068c98f767b1045f348.tar.gz
heat_manage: add juno support
Diffstat (limited to 'heat_manage')
-rw-r--r--heat_manage6
1 files changed, 5 insertions, 1 deletions
diff --git a/heat_manage b/heat_manage
index fbda3b6..e24abbd 100644
--- a/heat_manage
+++ b/heat_manage
@@ -30,6 +30,7 @@ try:
import heat
from heat.db.sqlalchemy import migration
from migrate.versioning import api as versioning_api
+ from heat.db import api
from oslo.config import cfg
except ImportError:
heat_found = False
@@ -45,7 +46,10 @@ def will_db_change(conf):
"""
# Load the config file options
cfg.CONF(project='heat', default_config_files=[conf])
- current_version = migration.db_version()
+ try:
+ current_version = migration.db_version()
+ except TypeError: # juno
+ current_version = api.db_version(api.get_engine())
repo_path = os.path.join(os.path.dirname(heat.__file__),
'db', 'sqlalchemy', 'migrate_repo')