Description
Three production files contain raw console.print(data) calls that dump the full Python dict to the terminal on every view command, before the nicely formatted Panel output.
Affected locations
pyintelowl/cli/_jobs_utils.py line 78, inside _render_job_attributes()
pyintelowl/cli/investigations.py line 98, inside _render_investigation_attributes()
pyintelowl/cli/playbooks.py line 30, inside _display_playbook()
Steps to reproduce
pyintelowl jobs view <any_job_id> pyintelowl investigations view <any_investigation_id> pyintelowl playbooks view <any_playbook_name>
Expected behavior
Only the formatted Panel output is shown.
Actual behavior
The raw Python dict is printed to the terminal above the Panel on every invocation.
Fix
Remove the three console.print(data) lines.
Description
Three production files contain raw
console.print(data)calls that dump the full Python dict to the terminal on everyviewcommand, before the nicely formatted Panel output.Affected locations
pyintelowl/cli/_jobs_utils.pyline 78, inside_render_job_attributes()pyintelowl/cli/investigations.pyline 98, inside_render_investigation_attributes()pyintelowl/cli/playbooks.pyline 30, inside_display_playbook()Steps to reproduce
pyintelowl jobs view <any_job_id> pyintelowl investigations view <any_investigation_id> pyintelowl playbooks view <any_playbook_name>
Expected behavior
Only the formatted
Paneloutput is shown.Actual behavior
The raw Python dict is printed to the terminal above the Panel on every invocation.
Fix
Remove the three
console.print(data)lines.