mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06: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:
parent
b6bab8d4e0
commit
fe689e9938
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user