Page MenuHomeDevCentral

Always set an aliases value to pass to nginx config template
ClosedPublic

Authored by dereckson on Oct 15 2018, 12:33.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 10, 08:59
Unknown Object (File)
Thu, Oct 31, 17:33
Unknown Object (File)
Wed, Oct 30, 13:06
Unknown Object (File)
Mon, Oct 21, 04:15
Unknown Object (File)
Sun, Oct 20, 21:36
Unknown Object (File)
Sun, Oct 20, 05:45
Unknown Object (File)
Sun, Oct 20, 05:45
Unknown Object (File)
Oct 19 2024, 15:13
Subscribers
None

Details

Summary

When a container doesn't have any alias for hostname,
an empty string is passed to the nginx configuration template.

This is a follow-up for af0a1983.

Test Plan

Run salt equatower state.apply roles/paas-docker/nginx/config
then look the Phabricator containers vhosts (only DevCentral has aliases).

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
fix-nginx-config (branched from master)
Build Status
Buildable 2995
Build 3243: arc lint + arc unit

Event Timeline

dereckson created this revision.

Use Jinja2 filter to avoid if/else block

dereckson retitled this revision from Explicitly give a null value to aliases when there isn't any to Always set an aliases value to pass to nginx config template.
dereckson edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Oct 15 2018, 12:39
This revision was automatically updated to reflect the committed changes.