summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2009-03-04 01:49:43 +0000
committerNarayan Desai <desai@mcs.anl.gov>2009-03-04 01:49:43 +0000
commit504cf78303db85239d01643c1aeadca21e0f9fa3 (patch)
tree0e7c66beb439543c9369331ba09bc58a0e347673
parentf452ae9439c06629c55053bc01334b1860277d30 (diff)
downloadbcfg2-504cf78303db85239d01643c1aeadca21e0f9fa3.tar.gz
bcfg2-504cf78303db85239d01643c1aeadca21e0f9fa3.tar.bz2
bcfg2-504cf78303db85239d01643c1aeadca21e0f9fa3.zip
fix init (i think)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5099 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/lib/Server/Admin/Snapshots.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Server/Admin/Snapshots.py b/src/lib/Server/Admin/Snapshots.py
index 293aecee3..23b91e1bc 100644
--- a/src/lib/Server/Admin/Snapshots.py
+++ b/src/lib/Server/Admin/Snapshots.py
@@ -28,7 +28,8 @@ class Snapshots(Bcfg2.Server.Admin.Mode):
for result in results:
print result.name
elif args[0] == 'init':
- engine = create_engine(Bcfg2.Server.Snapshots.db_from_config(), echo=True)
+ dbpath = Bcfg2.Server.Snapshots.db_from_config()
+ engine = sqlalchemy.create_engine(dbpath, echo=True)
metadata = Base.metadata
metadata.create_all(engine)
Session = sessionmaker()