Skip to content

Commit

Permalink
remove getattr
Browse files Browse the repository at this point in the history
  • Loading branch information
sergargar committed Apr 2, 2024
1 parent d5518a9 commit 2b6ec76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion prowler/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def prowler():
)

# Prowler Fixer
if getattr(args, "fix", None):
if global_provider.output_options.fix:
print(f"{Style.BRIGHT}\nRunning Prowler Fixer, please wait...{Style.RESET_ALL}")
# Check if there are any FAIL findings
if any("FAIL" in finding.status for finding in findings):
Expand Down
2 changes: 1 addition & 1 deletion prowler/lib/banner.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def print_banner(args):
"""
print(banner)

if args.verbose or getattr(args, "fix", False):
if args.verbose or getattr(args, "fix", None):
print(
f"""
Color code for results:
Expand Down

0 comments on commit 2b6ec76

Please sign in to comment.