diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2020-09-13 10:44:38 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2020-09-13 10:46:06 +0200 |
commit | 58eeabaf065676e9ae6a55bc6aa8a17182034164 (patch) | |
tree | ff9b8667713bdfd039d80bcbd27f4c72f4057286 /functest_kubernetes/security | |
parent | c4d232b020a32fa04bcc8083c519cbfc4814a5b6 (diff) |
self.details must be a dict
Change-Id: I4f65a9eeb7eda471371668db9abfa49e2875c5b0
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit b866c73d70079fdb52e5fc999f49a32d2af82349)
Diffstat (limited to 'functest_kubernetes/security')
-rw-r--r-- | functest_kubernetes/security/security.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functest_kubernetes/security/security.py b/functest_kubernetes/security/security.py index f3d20750..64aa4150 100644 --- a/functest_kubernetes/security/security.py +++ b/functest_kubernetes/security/security.py @@ -197,12 +197,12 @@ class KubeBench(SecurityTesting): def run(self, **kwargs): super(KubeBench, self).run(**kwargs) - self.details = ast.literal_eval(self.pod_log) + self.details["report"] = ast.literal_eval(self.pod_log) msg = prettytable.PrettyTable( header_style='upper', padding_width=5, field_names=['node_type', 'version', 'test_desc', 'pass', 'fail', 'warn']) - for details in self.details: + for details in self.details["report"]: for test in details['tests']: msg.add_row( [details['node_type'], details['version'], test['desc'], |