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