Guard against null in config processor (#1705)

Fixes #1704
This commit is contained in:
Bao 2023-03-30 03:08:08 -05:00 committed by GitHub
parent c5348564c9
commit a822735dfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ class ConfigurationOutput:
else:
self._user_config[key] = self._config[key]
if key == 'disk_encryption': # special handling for encryption password
if key == 'disk_encryption' and self._config[key]: # special handling for encryption password
self._user_credentials['encryption_password'] = self._config[key].encryption_password
def user_config_to_json(self) -> str: