From 3a522b8f2d8bfc71d520f0666c2441103145f042 Mon Sep 17 00:00:00 2001 From: Andrew Melton Date: Thu, 9 Jan 2014 14:32:17 -0500 Subject: [PATCH] Updating glance usage seed to work with latest code --- util/glance_usage_seed.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/glance_usage_seed.py b/util/glance_usage_seed.py index ff87032..eb31a15 100644 --- a/util/glance_usage_seed.py +++ b/util/glance_usage_seed.py @@ -114,8 +114,8 @@ def _get_deletes(start, session): def seed(period_length): start = get_period_start(datetime.datetime.utcnow(), period_length) - db_api.configure_db() - session = db_api.get_session() + db_api.setup_db_env() + session = db_api._get_session() print "Populating active image usages" usages = _get_usages(start, session)