Fix 'referenced before assignment' warning

This commit is contained in:
Alexander Bokovoy 2011-10-05 15:11:29 +03:00 committed by Martin Kosek
parent fe8aeef307
commit c76bbd5129

View File

@ -324,6 +324,7 @@ def uninstall(options, env, quiet=False):
if ntp_configured: if ntp_configured:
ntp_enabled = statestore.restore_state('ntp', 'enabled') ntp_enabled = statestore.restore_state('ntp', 'enabled')
ntp_step_tickers = statestore.restore_state('ntp', 'step-tickers') ntp_step_tickers = statestore.restore_state('ntp', 'step-tickers')
restored = False
try: try:
# Restore might fail due to file missing in backup # Restore might fail due to file missing in backup