aboutsummaryrefslogtreecommitdiffstats
path: root/keystone-moon/keystone/contrib
diff options
context:
space:
mode:
authorasteroide <thomas.duval@orange.com>2015-09-22 21:49:24 +0200
committerasteroide <thomas.duval@orange.com>2015-09-22 21:49:24 +0200
commit412fb93e6e35ff5f30c3835a65d80591ab95d580 (patch)
treedc571add2cb30c83dc2944431311bb10300c5924 /keystone-moon/keystone/contrib
parentff2cfa9c7abcdfd107974c2db8ffe8f9bdf1c2a0 (diff)
Fix all rule commands.
Change-Id: Ib0f30f2a9e26b4a9ac22af94c2b526a4e4f79e2e
Diffstat (limited to 'keystone-moon/keystone/contrib')
-rw-r--r--keystone-moon/keystone/contrib/moon/controllers.py4
1 files changed, 2 insertions, 2 deletions
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()