diff options
author | Devan Goodwin <dgoodwin@redhat.com> | 2016-06-17 10:48:38 -0300 |
---|---|---|
committer | Devan Goodwin <dgoodwin@redhat.com> | 2016-06-17 10:48:38 -0300 |
commit | dc75bf3a6c7913c519706e69a3ea82efd191b378 (patch) | |
tree | 2fc2103e242c53d871d3f44b4c746510944ba802 /filter_plugins | |
parent | e60b8976ef638c3368dd229906078f1077f00a99 (diff) | |
download | openshift-dc75bf3a6c7913c519706e69a3ea82efd191b378.tar.gz openshift-dc75bf3a6c7913c519706e69a3ea82efd191b378.tar.bz2 openshift-dc75bf3a6c7913c519706e69a3ea82efd191b378.tar.xz openshift-dc75bf3a6c7913c519706e69a3ea82efd191b378.zip |
Check that detected version matches openshift_release in rpm installations.
Diffstat (limited to 'filter_plugins')
-rw-r--r-- | filter_plugins/oo_filters.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/filter_plugins/oo_filters.py b/filter_plugins/oo_filters.py index 7510975f2..54891b066 100644 --- a/filter_plugins/oo_filters.py +++ b/filter_plugins/oo_filters.py @@ -891,6 +891,10 @@ class FilterModule(object): return version + @staticmethod + def oo_startswith(input, prefix): + return input.startswith(prefix) + def filters(self): """ returns a mapping of filters to methods """ return { @@ -924,4 +928,5 @@ class FilterModule(object): "oo_oc_nodes_matching_selector": self.oo_oc_nodes_matching_selector, "oo_oc_nodes_with_label": self.oo_oc_nodes_with_label, "oo_merge_hostvars": self.oo_merge_hostvars, + "oo_startswith": self.oo_startswith, } |