Skip to content

Commit

Permalink
Update troubadix/standalone_plugins/deprecate_vts.py
Browse files Browse the repository at this point in the history
Co-authored-by: mbrinkhoff <[email protected]>
  • Loading branch information
amy-gb and mbrinkhoff authored Jul 1, 2024
1 parent 5a2f4de commit 06bc532
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion troubadix/standalone_plugins/deprecate_vts.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def update_summary(file: DeprecatedFile, deprecation_reason: str) -> str:
return file.content


def finalize_content(content: str) -> str:
def _finalize_content(content: str) -> str:
"""Update the content field of the nasl script by adding the
deprecated tag and removing the extra content."""
content_to_keep = content.split("exit(0);")[0]
Expand Down

0 comments on commit 06bc532

Please sign in to comment.