summaryrefslogtreecommitdiffstats
path: root/filter_plugins
diff options
context:
space:
mode:
Diffstat (limited to 'filter_plugins')
-rw-r--r--filter_plugins/oo_filters.py5
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,
}