diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2014-11-06 22:26:44 +0100 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2014-11-14 22:08:22 +0100 |
commit | 7d3ee2cd0fa478e7b579d0fb7379150624256227 (patch) | |
tree | 19f4fbd7675fb2d7eddfd53b36636d7ca4b88dd1 | |
parent | 12ae8ee9699da3e79232292ef88e67cb0ec21f21 (diff) | |
download | clufter-7d3ee2cd0fa478e7b579d0fb7379150624256227.tar.gz clufter-7d3ee2cd0fa478e7b579d0fb7379150624256227.tar.xz clufter-7d3ee2cd0fa478e7b579d0fb7379150624256227.zip |
utils_cluster: cluster_pcs_1_2 utilizing patch-level granularity
... in tracked Pacemaker versions
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r-- | utils_cluster.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/utils_cluster.py b/utils_cluster.py index 046311b..80153e3 100644 --- a/utils_cluster.py +++ b/utils_cluster.py @@ -336,6 +336,15 @@ def cluster_pcs_needle(*sys_id): return bool(infer("comp:corosync=needle + comp:pacemaker[coro]", *sys_id)) +def cluster_pcs_1_2(*sys_id): + """Whether particular `sys_id` corresponds to pacemaker with 1.2+ schema""" + return not any(( + infer("comp:pacemaker=1.1.0", *sys_id), + infer("comp:pacemaker=1.0", *sys_id), + infer("comp:pacemaker=0", *sys_id), + )) + + cluster_systems = (cluster_pcs_flatiron, cluster_pcs_needle) |