Hi,

in 1770 due to code moving from one part of the file to another, 
restored variable didn't get a proper assignment.

One line patch.

-- 
/ Alexander Bokovoy
>From 8c46d269fb412887cf0eb70ec69bb6861933f56a Mon Sep 17 00:00:00 2001
From: Alexander Bokovoy <aboko...@redhat.com>
Date: Wed, 5 Oct 2011 15:11:29 +0300
Subject: [PATCH 2/2] Fix 'referenced before assignment' warning

---
 ipa-client/ipa-install/ipa-client-install |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/ipa-client/ipa-install/ipa-client-install 
b/ipa-client/ipa-install/ipa-client-install
index 
3810caea3eee403d0f225d52e0e5c5b2b8489a78..657c3be4d27e78b6c558697b4bbb27238a421966
 100755
--- a/ipa-client/ipa-install/ipa-client-install
+++ b/ipa-client/ipa-install/ipa-client-install
@@ -324,6 +324,7 @@ def uninstall(options, env, quiet=False):
     if ntp_configured:
         ntp_enabled = statestore.restore_state('ntp', 'enabled')
         ntp_step_tickers = statestore.restore_state('ntp', 'step-tickers')
+        restored = False
 
         try:
             # Restore might fail due to file missing in backup
-- 
1.7.6.4

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to