mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-25 06:38:02 -05:00
Fix possibly undefined variable in ipa_smb_conf_exists()
There was missing else statement what may result in undefined conf_fd variable. Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
1 parent
b6bab8d4e0
commit
fe689e9938
1 file changed
+2
@@ -81,6 +81,8 @@ def ipa_smb_conf_exists():
|
||||
except IOError as err:
|
||||
if err.errno == errno.ENOENT:
|
||||
return False
|
||||
else:
|
||||
raise
|
||||
|
||||
lines = conf_fd.readlines()
|
||||
conf_fd.close()
|
||||
|
||||
Reference in new issue
Block a user