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

AttributeError: 'Settings' object has no attribute 'CONTENT_ORIGIN' #287

Open
fao89 opened this issue Nov 10, 2021 · 0 comments
Open

AttributeError: 'Settings' object has no attribute 'CONTENT_ORIGIN' #287

fao89 opened this issue Nov 10, 2021 · 0 comments

Comments

@fao89
Copy link
Owner

fao89 commented Nov 10, 2021

Author: @daviddavis (daviddavis)

Redmine Issue: 8235, https://pulp.plan.io/issues/8235


Reproducer:

  1. Have pulpcore and pulp_ansible installed
  2. Unset CONTENT_ORIGIN in your settings file.

Observe that you get an ugly AttributeError instead of the user friendly error that pulpcore raises.

This is caused because pulpcore loads the plugin settings before checking if CONTENT_ORIGIN is defined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment