diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2009-03-04 01:59:37 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2009-03-04 01:59:37 +0000 |
commit | d83ace2cc9d152b81bd58ecf9560c67c724ddf91 (patch) | |
tree | 7b7c752e75c01957bb67e64c7ac4b4d91204d6c1 | |
parent | 58805b9eeaa72a1116911700ff91eee44719c7bd (diff) | |
download | bcfg2-d83ace2cc9d152b81bd58ecf9560c67c724ddf91.tar.gz bcfg2-d83ace2cc9d152b81bd58ecf9560c67c724ddf91.tar.bz2 bcfg2-d83ace2cc9d152b81bd58ecf9560c67c724ddf91.zip |
one more init fix
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5102 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r-- | src/lib/Server/Admin/Snapshots.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/Server/Admin/Snapshots.py b/src/lib/Server/Admin/Snapshots.py index abfcc73b2..fc3334c11 100644 --- a/src/lib/Server/Admin/Snapshots.py +++ b/src/lib/Server/Admin/Snapshots.py @@ -2,7 +2,6 @@ import Bcfg2.Server.Admin import sqlalchemy, sqlalchemy.orm import Bcfg2.Server.Snapshots import Bcfg2.Server.Snapshots.model -from sqlalchemy.ext.declarative import declarative_base class Snapshots(Bcfg2.Server.Admin.Mode): __shorthelp__ = "Interact with the Snapshots system" @@ -31,8 +30,7 @@ class Snapshots(Bcfg2.Server.Admin.Mode): elif args[0] == 'init': dbpath = Bcfg2.Server.Snapshots.db_from_config() engine = sqlalchemy.create_engine(dbpath, echo=True) - Base = declarative_base() - metadata = Base.metadata + metadata = Bcfg2.Server.Snapshots.model.Base.metadata metadata.create_all(engine) Session = sqlalchemy.orm.sessionmaker() Session.configure(bind=engine) |