From 412fb93e6e35ff5f30c3835a65d80591ab95d580 Mon Sep 17 00:00:00 2001 From: asteroide Date: Tue, 22 Sep 2015 21:49:24 +0200 Subject: Fix all rule commands. Change-Id: Ib0f30f2a9e26b4a9ac22af94c2b526a4e4f79e2e --- keystone-moon/keystone/contrib/moon/controllers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'keystone-moon/keystone/contrib') diff --git a/keystone-moon/keystone/contrib/moon/controllers.py b/keystone-moon/keystone/contrib/moon/controllers.py index 4bc619a3..c938278c 100644 --- a/keystone-moon/keystone/contrib/moon/controllers.py +++ b/keystone-moon/keystone/contrib/moon/controllers.py @@ -704,11 +704,11 @@ class IntraExtensions(controller.V3Controller): user_id = self._get_user_id_from_token(context.get('token_id')) intra_extension_id = kw.get('intra_extension_id', None) sub_meta_rule_id = kw.get('sub_meta_rule_id', None) - rule_list = list() subject_category_list = kw.get('subject_categories', []) object_category_list = kw.get('object_categories', []) action_category_list = kw.get('action_categories', []) - rule_list = subject_category_list + action_category_list + object_category_list + enabled_bool = kw.get('enabled', True) + rule_list = subject_category_list + action_category_list + object_category_list + [enabled_bool, ] return self.admin_api.add_rule_dict(user_id, intra_extension_id, sub_meta_rule_id, rule_list) @controller.protected() -- cgit 1.2.3-korg