mirror of
https://github.com/aquasecurity/kube-hunter.git
synced 2026-08-23 06:06:18 +00:00
14 lines
346 B
Python
14 lines
346 B
Python
from io import StringIO
|
|
from ruamel.yaml import YAML
|
|
|
|
from kube_hunter.modules.report.base import BaseReporter
|
|
|
|
|
|
class YAMLReporter(BaseReporter):
|
|
def get_report(self, **kwargs):
|
|
report = super().get_report(**kwargs)
|
|
output = StringIO()
|
|
yaml = YAML()
|
|
yaml.dump(report, output)
|
|
return output.getvalue()
|