Merge pull request #268 from ramielrowe/glance_usage_seed_update

Updating glance usage seed to work with latest code
This commit is contained in:
Andrew Melton 2014-01-10 13:19:45 -08:00
commit 38a68c2b96

View File

@ -114,8 +114,8 @@ def _get_deletes(start, session):
def seed(period_length): def seed(period_length):
start = get_period_start(datetime.datetime.utcnow(), period_length) start = get_period_start(datetime.datetime.utcnow(), period_length)
db_api.configure_db() db_api.setup_db_env()
session = db_api.get_session() session = db_api._get_session()
print "Populating active image usages" print "Populating active image usages"
usages = _get_usages(start, session) usages = _get_usages(start, session)