summaryrefslogtreecommitdiffstats
path: root/keystone-moon
diff options
context:
space:
mode:
authorasteroide <thomas.duval@orange.com>2015-09-18 11:50:38 +0200
committerasteroide <thomas.duval@orange.com>2015-09-18 11:50:38 +0200
commit7c5c438598ad3bdf1c2a12717a058481dab80dc7 (patch)
tree4d4bb8e3b5ce3c7657d4f807afe6fd6befd8b616 /keystone-moon
parenta03ac963aaebfbeb85e54f1cab98bae8f940d0ac (diff)
Fix a bug when adding an assignment.
Change-Id: Ic3055c39ce0202808c8f7ca0d1d4dfac71145af0
Diffstat (limited to 'keystone-moon')
-rw-r--r--keystone-moon/keystone/contrib/moon/backends/sql.py2
1 files changed, 1 insertions, 1 deletions
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)