Skip to content

Commit

Permalink
Update Core.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-funk authored Mar 1, 2024
1 parent 0944b09 commit f7d063f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dev_facade/RW/Core.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ def import_secret(self, varname: str, description: str = None, example: str = No
else:
val = os.getenv(key, "")
ret = platform.Secret(varname, val)
__masked.append(val)
__masked.append(repr(val)) # we enter 2 representations, with and without newlines rendered for file contents
if val:
__masked.append(val)
__masked.append(repr(val)) # we enter 2 representations, with and without newlines rendered for file contents
self.builtin.set_suite_variable("${" + Core.MASKED_LIST + "}", __masked)
self.builtin.set_suite_variable("${" + varname + "}", ret)
return ret
Expand Down

0 comments on commit f7d063f

Please sign in to comment.