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:
1 parent
dd2e3a5547
commit
c2edfa0adb
1 file changed
+3
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user