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, Dec 22, 05:53
Unknown Object (File)
Thu, Dec 19, 21:17
Unknown Object (File)
Thu, Dec 19, 20:53
Unknown Object (File)
Fri, Dec 13, 16:52
Unknown Object (File)
Thu, Dec 12, 23:00
Unknown Object (File)
Wed, Dec 11, 17:33
Unknown Object (File)
Wed, Dec 11, 07:06
Unknown Object (File)
Thu, Dec 5, 21:08
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.