mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
s4:provision - Fix up ProvisioningError class as suggested by Jelmer
This commit is contained in:
parent
7373bb79d4
commit
63f280cfef
@ -58,11 +58,6 @@ from dcerpc.misc import SEC_CHAN_BDC, SEC_CHAN_WKSTA
|
||||
|
||||
__docformat__ = "restructuredText"
|
||||
|
||||
|
||||
class ProvisioningError(ValueError):
|
||||
pass
|
||||
|
||||
|
||||
def find_setup_dir():
|
||||
"""Find the setup directory used by provision."""
|
||||
dirname = os.path.dirname(__file__)
|
||||
@ -81,6 +76,11 @@ def find_setup_dir():
|
||||
|
||||
DEFAULTSITE = "Default-First-Site-Name"
|
||||
|
||||
# Exception classes
|
||||
|
||||
class ProvisioningError(Exception):
|
||||
"""A generic provision error."""
|
||||
|
||||
class InvalidNetbiosName(Exception):
|
||||
"""A specified name was not a valid NetBIOS name."""
|
||||
def __init__(self, name):
|
||||
|
Loading…
x
Reference in New Issue
Block a user