File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change
1
+ Fixed openapi command where plugins relied on CONTENT_ORIGIN to be set.
Original file line number Diff line number Diff line change 7
7
@register (deploy = True )
8
8
def content_origin_check (app_configs , ** kwargs ):
9
9
messages = []
10
- if not getattr (settings , "CONTENT_ORIGIN" , None ) :
10
+ if getattr (settings , "CONTENT_ORIGIN" , "UNREACHABLE" ) == "UNREACHABLE" :
11
11
messages .append (
12
12
CheckError (
13
13
"CONTENT_ORIGIN is a required setting but it was not configured. This may be "
Original file line number Diff line number Diff line change 248
248
249
249
DRF_ACCESS_POLICY = {"reusable_conditions" : ["pulpcore.app.global_access_conditions" ]}
250
250
251
+ # This is a sentinal value for deploy checks, since we don't want to set a default one.
252
+ CONTENT_ORIGIN = "UNREACHABLE"
251
253
CONTENT_PATH_PREFIX = "/pulp/content/"
252
254
253
255
API_APP_TTL = 120 # The heartbeat is called from gunicorn notify (defaulting to 45 sec).
You can’t perform that action at this time.
0 commit comments