if os.path.exists(UNATTENDED_UPGRADE_POLICY_FILE_PATH)

This commit is contained in:
shenyafeng 2022-10-21 19:56:38 +08:00
parent 12a98bdd85
commit 6a98ca7378
1 changed files with 1 additions and 1 deletions

View File

@ -728,7 +728,7 @@ class UnattendedUpgradesShutdown():
'''
if self.options.wait_for_signal:
def change_upgrade_policy_handler():
if os.path.exist(UNATTENDED_UPGRADE_POLICY_FILE_PATH):
if os.path.exists(UNATTENDED_UPGRADE_POLICY_FILE_PATH):
autoupgradepolicy.reload_config()
if autoupgradepolicy.GetOptionValue('autoUpgradeState') == 'on':