Skip to content

Commit

Permalink
Fix reading of unavailable DOMAIN_ENABLED setting
Browse files Browse the repository at this point in the history
On older versions of Pulpcore this setting is unknown and should be
assumed False.

[noissue]
  • Loading branch information
mdellweg committed Apr 8, 2024
1 parent c2b209d commit 58483de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion images/s6_assets/template_nginx.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
else:
values["api_root"] = settings.API_ROOT
values["content_path"] = settings.CONTENT_PATH_PREFIX
values["domain_enabled"] = settings.DOMAIN_ENABLED
values["domain_enabled"] = getattr(settings, "DOMAIN_ENABLED", False)

template = Template(args.template_file.read())
output = template.render(**values)
Expand Down

0 comments on commit 58483de

Please sign in to comment.