From 7c5c438598ad3bdf1c2a12717a058481dab80dc7 Mon Sep 17 00:00:00 2001 From: asteroide Date: Fri, 18 Sep 2015 11:50:38 +0200 Subject: Fix a bug when adding an assignment. Change-Id: Ic3055c39ce0202808c8f7ca0d1d4dfac71145af0 --- keystone-moon/keystone/contrib/moon/backends/sql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'keystone-moon') diff --git a/keystone-moon/keystone/contrib/moon/backends/sql.py b/keystone-moon/keystone/contrib/moon/backends/sql.py index 43bd3078..0a2e2407 100644 --- a/keystone-moon/keystone/contrib/moon/backends/sql.py +++ b/keystone-moon/keystone/contrib/moon/backends/sql.py @@ -812,7 +812,7 @@ class IntraExtensionConnector(IntraExtensionDriver): if attr != 'id': setattr(ref, attr, getattr(new_ref, attr)) session.flush() - return self.get_subject_assignment_list(intra_extension_id, subject_id, subject_category_id) + return subject_assignment_list def add_subject_assignment_list(self, intra_extension_id, subject_id, subject_category_id, subject_scope_id): new_subject_assignment_list = self.get_subject_assignment_list(intra_extension_id, subject_id, subject_category_id) -- cgit 1.2.3-korg