zuul/tests/fixtures/config/speculative-plugins/git/org_project/playbooks/filter-plugin-role/roles/local-role/filter_plugins/main.py

15 lines
282 B
Python

import subprocess
def my_cool_test(string):
shell_output = subprocess.check_output(['hostname'])
return 'hostname: %s' % shell_output.decode('utf-8')
class FilterModule(object):
def filters(self):
return {
'my_cool_test': my_cool_test
}