A Day-2 host management interface for Kubernetes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
813 B

from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
# Converts the list of list of hosts to only a list of hosts
# that is accepted by the ansible playbook for execution
# Returns: [,,,]
def hostconfig_host_groups_to_list(hostconfig_host_groups):
host_groups_list = list()
if type(hostconfig_host_groups) != list:
return ''
for hg in hostconfig_host_groups:
return str(host_groups_list)
class FilterModule(object):
''' Plugin to convert list of list to list of \
strings for ansible-operator '''
def filters(self):
return {
'hostconfig_host_groups_to_list': hostconfig_host_groups_to_list