Skip to content

Commit

Permalink
fix: Add resolution url to the json output
Browse files Browse the repository at this point in the history
  • Loading branch information
dorukozturk committed Jul 24, 2023
1 parent 3774cad commit 2fa0769
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions hardeneks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def ndd():
"resources": rule.result.resources,
"resource_type": rule.result.resource_type,
"namespace": rule.result.namespace,
"resolution": rule.url,
}
json_blob[rule._type][rule.pillar][rule.section][rule.message] = result
with open(json_path, "w", encoding="utf-8") as f:
Expand Down
2 changes: 1 addition & 1 deletion hardeneks/cluster_wide/security/multi_tenancy.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ def check(self, resources: Resources):
self.result = Result(status=True, resource_type="Namespace")
if offenders:
self.result = Result(
status=False, resources=offenders, resource_type="Namepsace"
status=False, resources=offenders, resource_type="Namespace"
)

0 comments on commit 2fa0769

Please sign in to comment.