idrange: fix unassigned global variable

Global variable '_dcerpc_bindings_installed' is in some cases used
before assigment. This patch ensures that _dcerpc_bindings_installed is
always initialized.

https://fedorahosted.org/freeipa/ticket/6082

Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
Martin Basti 2016-07-29 16:46:09 +02:00
parent dd2e3a5547
commit c2edfa0adb

View File

@ -35,6 +35,9 @@ if api.env.in_server and api.env.context in ['lite', 'server']:
_dcerpc_bindings_installed = True
except ImportError:
_dcerpc_bindings_installed = False
else:
_dcerpc_bindings_installed = False
ID_RANGE_VS_DNA_WARNING = """=======
WARNING: