Skip to content

Commit

Permalink
fixing finding
Browse files Browse the repository at this point in the history
  • Loading branch information
Avi-Robusta committed Jan 5, 2025
1 parent 2a1b8b8 commit bad89dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions playbooks/robusta_playbooks/kubectl_enrichments.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def kubectl_command(event: ExecutionBaseEvent, params: KubectlParams):
)

try:
logs = RobustaJob.run_simple_job_spec(
kubectl_response = RobustaJob.run_simple_job_spec(
spec,
f"debug-kubectl-{str(uuid.uuid4())}",
params.timeout,
Expand All @@ -63,9 +63,9 @@ def kubectl_command(event: ExecutionBaseEvent, params: KubectlParams):
)
event.add_enrichment(
[
MarkdownBlock(f"kubectl_command ran\n{formatted_kubectl_command}"),
FileBlock(f"kubectl.txt", logs.encode()),
]
MarkdownBlock(f"*{formatted_kubectl_command}*"),
FileBlock(f"kubectl.txt", kubectl_response.encode()),
], title="Kubectl Command"
)
except Exception:
logging.exception("Error running kubectl command")
Expand Down

0 comments on commit bad89dc

Please sign in to comment.