Browse Source
fix: handle None env vars
Signed-off-by: -LAN- <laipz8200@outlook.com>
tags/2.0.0-beta.2^2
-LAN-
1 month ago
No account linked to committer's email address
|
|
|
|
|
|
|
|
if not tenant_id: |
|
|
if not tenant_id: |
|
|
return [] |
|
|
return [] |
|
|
|
|
|
|
|
|
environment_variables_dict: dict[str, Any] = json.loads(self._environment_variables) |
|
|
|
|
|
|
|
|
environment_variables_dict: dict[str, Any] = json.loads(self._environment_variables or "{}") |
|
|
results = [ |
|
|
results = [ |
|
|
variable_factory.build_environment_variable_from_mapping(v) for v in environment_variables_dict.values() |
|
|
variable_factory.build_environment_variable_from_mapping(v) for v in environment_variables_dict.values() |
|
|
] |
|
|
] |