[PATCH] Low: shell: add group meta attributes

Dejan Muhamedagic dejan at suse.de
Wed Mar 6 10:57:54 UTC 2013


---
 shell/modules/cibconfig.py | 2 ++
 shell/modules/vars.py.in   | 1 +
 2 files changed, 3 insertions(+)

diff --git a/shell/modules/cibconfig.py b/shell/modules/cibconfig.py
index 2dfaa92..1cf08fa 100644
--- a/shell/modules/cibconfig.py
+++ b/shell/modules/cibconfig.py
@@ -1152,6 +1152,8 @@ class CibContainer(CibObject):
             l += vars.clone_meta_attributes
         elif self.obj_type == "ms":
             l += vars.clone_meta_attributes + vars.ms_meta_attributes
+        elif self.obj_type == "group":
+            l += vars.group_meta_attributes
         rc = sanity_check_meta(self.obj_id,self.node,l)
         return rc
 
diff --git a/shell/modules/vars.py.in b/shell/modules/vars.py.in
index c83232e..dff86dc 100644
--- a/shell/modules/vars.py.in
+++ b/shell/modules/vars.py.in
@@ -117,6 +117,7 @@ class Vars(Singleton):
         "failure-timeout", "resource-stickiness", "target-role",
         "restart-type", "description",
     )
+    group_meta_attributes = ("ordered", "colocated")
     clone_meta_attributes = (
         "ordered", "notify", "interleave", "globally-unique",
         "clone-max", "clone-node-max", "clone-state", "description",
-- 
1.8.0


--RnlQjJ0d97Da+TV1--



More information about the Pacemaker mailing list