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

[fix] Use Dynaconf lazy variables insted of re-importing the settings. #1130

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions pulp_ansible/app/settings.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import socket

from dynaconf import settings

LOGGING = {
"loggers": {
"pulp_ansible.app.tasks.collection.import_collection": {
Expand All @@ -21,15 +19,15 @@
}

ANSIBLE_API_HOSTNAME = "https://" + socket.getfqdn()
ANSIBLE_CONTENT_HOSTNAME = settings.CONTENT_ORIGIN + "/pulp/content"
ANSIBLE_CONTENT_HOSTNAME = "@format {this.CONTENT_ORIGIN}/pulp/content"
ANSIBLE_SIGNATURE_REQUIRE_VERIFICATION = True
ANSIBLE_SIGNING_TASK_LIMITER = 10
ANSIBLE_DEFAULT_DISTRIBUTION_PATH = None
ANSIBLE_URL_NAMESPACE = ""
ANSIBLE_COLLECT_DOWNLOAD_LOG = False
ANSIBLE_COLLECT_DOWNLOAD_COUNT = False
ANSIBLE_AUTHENTICATION_CLASSES = settings.REST_FRAMEWORK["DEFAULT_AUTHENTICATION_CLASSES"]
ANSIBLE_PERMISSION_CLASSES = settings.REST_FRAMEWORK["DEFAULT_PERMISSION_CLASSES"]
ANSIBLE_AUTHENTICATION_CLASSES = "@get REST_FRAMEWORK.DEFAULT_AUTHENTICATION_CLASSES"
ANSIBLE_PERMISSION_CLASSES = "@get REST_FRAMEWORK.DEFAULT_PERMISSION_CLASSES"

DRF_ACCESS_POLICY = {
"dynaconf_merge_unique": True,
Expand Down
Loading