summaryrefslogtreecommitdiffstats
path: root/filter_plugins
diff options
context:
space:
mode:
authorJeff Cantrill <jcantrill@users.noreply.github.com>2017-01-17 11:42:23 -0500
committerJeff Cantrill <jcantril@redhat.com>2017-01-17 13:49:11 -0500
commit65eb7e43faf38698b22b90ad3c743d1fecdc0961 (patch)
treebb690323269d929c9582756b4a77c8189217dcf4 /filter_plugins
parente96de3d7eb0b0ce6a8df96d4e3afa02f0859b94b (diff)
downloadopenshift-65eb7e43faf38698b22b90ad3c743d1fecdc0961.tar.gz
openshift-65eb7e43faf38698b22b90ad3c743d1fecdc0961.tar.bz2
openshift-65eb7e43faf38698b22b90ad3c743d1fecdc0961.tar.xz
openshift-65eb7e43faf38698b22b90ad3c743d1fecdc0961.zip
use pod to generate keystores (#14)
Diffstat (limited to 'filter_plugins')
-rw-r--r--filter_plugins/oo_filters.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/filter_plugins/oo_filters.py b/filter_plugins/oo_filters.py
index ca2615b29..c9390efe6 100644
--- a/filter_plugins/oo_filters.py
+++ b/filter_plugins/oo_filters.py
@@ -922,7 +922,8 @@ Ex:
# '+', .split() returns an array of the original string.
return str(version).split('+')[0]
-def oo_random_word(length,source='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'):
+
+def oo_random_word(length, source='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'):
"""Generates a random string of given length from a set of alphanumeric characters.
The default source uses [a-z][A-Z][0-9]
Ex:
@@ -931,6 +932,7 @@ def oo_random_word(length,source='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRST
"""
return ''.join(random.choice(source) for i in range(length))
+
class FilterModule(object):
""" Custom ansible filter mapping """