Unverified Commit d325d2a9 authored by Helgi Þormar Þorbjörnsson's avatar Helgi Þormar Þorbjörnsson Committed by Matthew Fisher
Browse files

Return empty string instead of nil when linting on required (#4748)


* Return empty string instead of nil when linting on required

This allows lint to work in scenarios when required is used in secrets or it's output is passed to another function.
Due to lint mode no longer failing on missing value in required it is passing nil through which not all functions can accept.

Fixes #4747

Signed-off-by: default avatarHelgi Þorbjörnsson <helgith@gmail.com>

* Apply suggestions from code review

Co-Authored-By: default avatarhelgi <70530+helgi@users.noreply.github.com>
Signed-off-by: default avatarHelgi Þorbjörnsson <helgith@gmail.com>

* Add tests

Signed-off-by: default avatarHelgi Þorbjörnsson <helgith@gmail.com>
(cherry picked from commit 15703cb1)
No related merge requests found
Showing with 29 additions and 3 deletions
+29 -3
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment