-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore null template key values #679
Conversation
@@ -85,4 +86,5 @@ server { | |||
fastcgi_param APPLICATION_STORE {{ store_code }}; | |||
} | |||
} | |||
{% endif %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
misses zed api further down, however there's another PR for that #685
@@ -3,7 +3,7 @@ | |||
{% set syncvolume = true %} | |||
{% endif %} | |||
{% set hostnames = [@('hostname')] %} | |||
{% set hostnames = hostnames|merge(@('hostname_aliases')|map(alias => "#{alias}." ~ @('domain'))) %} | |||
{% set hostnames = hostnames|merge(@('hostname_aliases')| filter(v => v is not empty) | map(alias => "#{alias}." ~ @('domain'))) %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just this bit now that is what we want to keep after @Chemaclass's PRs now merged
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
although should also be done for varnish. I'll create a PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#689, I've instead done at the source
if ($value === null) { | ||
continue; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already done: #686
Currently for values set to
~
that are compiled together using this function, these values are still appended to the output. This ensures that for any null values passed into this function, that they are ignored.