diff options
Diffstat (limited to 'filter_plugins')
-rw-r--r-- | filter_plugins/env_json_map.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/filter_plugins/env_json_map.py b/filter_plugins/env_json_map.py new file mode 100644 index 0000000..790dea0 --- /dev/null +++ b/filter_plugins/env_json_map.py | |||
@@ -0,0 +1,8 @@ | |||
1 | #!/usr/bin/env python | ||
2 | |||
3 | class FilterModule(object): | ||
4 | def filters(self): | ||
5 | return {'json_env_map': self.json_env_map} | ||
6 | |||
7 | def json_env_map(self, env): | ||
8 | return [{'name': k, 'value': str(v)} for k,v in env.items()] | ||