Files
mormamnandGitHub a8128b7ea0 Cleanup conf refactor (#310)
Reorganize config files, and argparse.
Resolves #289
Resolves #292
2020-02-25 12:29:18 +02:00

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()