Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to find sanitizer called 'x.y' #33

Open
rohitjha941 opened this issue Oct 12, 2020 · 0 comments
Open

Unable to find sanitizer called 'x.y' #33

rohitjha941 opened this issue Oct 12, 2020 · 0 comments

Comments

@rohitjha941
Copy link

Getting following error while running sanitization

Traceback (most recent call last):
  File "/home/ubuntu/.local/bin/database-sanitizer", line 11, in <module>
    sys.exit(main())
  File "/home/ubuntu/.local/lib/python3.6/site-packages/database_sanitizer/__main__.py", line 52, in main
    config = Configuration.from_file(args.config)
  File "/home/ubuntu/.local/lib/python3.6/site-packages/database_sanitizer/config.py", line 53, in from_file
    instance.load(config_data)
  File "/home/ubuntu/.local/lib/python3.6/site-packages/database_sanitizer/config.py", line 73, in load
    self.load_sanitizers(config_data)
  File "/home/ubuntu/.local/lib/python3.6/site-packages/database_sanitizer/config.py", line 206, in load_sanitizers
    sanitizer_callback = self.find_sanitizer(sanitizer_name)
  File "/home/ubuntu/.local/lib/python3.6/site-packages/database_sanitizer/config.py", line 285, in find_sanitizer
    name,
database_sanitizer.config.ConfigurationError: Unable to find sanitizer called 't.email'

Folder Structure:

/home/ubuntu/postgresql-data-backup/scripts

  • sanitize.yml
  • t.py

sanitize.yml

config:
  addons: []
strategy:
  users:
    email: t.email

t.py

def sanitize_email(value):
    return "test"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant