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:
Martin Basti 2016-06-20 12:48:38 +02:00
parent b6bab8d4e0
commit fe689e9938

View File

@ -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()