From f7d063f065c2462ab846012ea42ad4b7facd200f Mon Sep 17 00:00:00 2001 From: jon-funk Date: Fri, 1 Mar 2024 12:19:04 -0800 Subject: [PATCH] Update Core.py --- dev_facade/RW/Core.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dev_facade/RW/Core.py b/dev_facade/RW/Core.py index a426c64..232ec76 100644 --- a/dev_facade/RW/Core.py +++ b/dev_facade/RW/Core.py @@ -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