summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Snapshots
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2009-03-25 20:24:41 +0000
committerNarayan Desai <desai@mcs.anl.gov>2009-03-25 20:24:41 +0000
commitcc21ed6297d51505852d19fb44abd3c7ea66f04c (patch)
treeb2c0367c1b595846a7a9365dd5e6c3e3916424a6 /src/lib/Server/Snapshots
parent16a58d447ba102088f6bf62217202200bf2b2113 (diff)
downloadbcfg2-cc21ed6297d51505852d19fb44abd3c7ea66f04c.tar.gz
bcfg2-cc21ed6297d51505852d19fb44abd3c7ea66f04c.tar.bz2
bcfg2-cc21ed6297d51505852d19fb44abd3c7ea66f04c.zip
Snapshots: initialize snap -> client linkage properly
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5141 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Snapshots')
-rw-r--r--src/lib/Server/Snapshots/model.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Snapshots/model.py b/src/lib/Server/Snapshots/model.py
index d996812c6..ca67d4f2e 100644
--- a/src/lib/Server/Snapshots/model.py
+++ b/src/lib/Server/Snapshots/model.py
@@ -233,7 +233,7 @@ class Snapshot(Base):
def from_data(cls, session, correct, revision, metadata, entries, extra):
dbm = Metadata.from_metadata(session, metadata)
snap = cls(correct=correct, client_metadata=dbm, revision=revision,
- timestamp=datetime.datetime.now())
+ timestamp=datetime.datetime.now(), client=dbm.client)
for (dispatch, data) in [(cls.c_dispatch, entries),
(cls.e_dispatch, extra)]:
for key in dispatch: