From: Tony Mack Date: Mon, 1 Oct 2012 20:47:16 +0000 (-0400) Subject: fix call to update X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=cd426abcb2b76213187a36114bb3ba4cea66b7b3;p=plcapi.git fix call to update --- diff --git a/PLC/Slices.py b/PLC/Slices.py index eb8cc7b7..b594909c 100644 --- a/PLC/Slices.py +++ b/PLC/Slices.py @@ -91,7 +91,7 @@ class Slice(AlchemyObj): # slice.delete(commit) AlchemyObj.insert(self, dict(self)) else: - AlchemyObj.update(self, self['slice_id'], dict(self)) + AlchemyObj.update(self, {'slice_id': self['slice_id']}, dict(self)) def delete(self, commit = True): """