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, Apr 14, 06:14
Unknown Object (File)
Sun, Apr 14, 06:14
Unknown Object (File)
Mon, Apr 8, 10:55
Unknown Object (File)
Mon, Apr 8, 10:46
Unknown Object (File)
Sun, Apr 7, 19:24
Unknown Object (File)
Sat, Apr 6, 04:55
Unknown Object (File)
Thu, Apr 4, 12:11
Unknown Object (File)
Fri, Mar 29, 12:05
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 Not Applicable
Unit
Tests Not Applicable

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.