mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
A new exception for requiring root, RootRequired
This commit is contained in:
@@ -710,6 +710,22 @@ class RealmMismatch(ExecutionError):
|
||||
errno = 4005
|
||||
format = _('The realm for the principal does not match the realm for this IPA server')
|
||||
|
||||
class RequiresRoot(ExecutionError):
|
||||
"""
|
||||
**4006** Raised when a command requires the unix super-user to run
|
||||
|
||||
For example:
|
||||
|
||||
>>> raise RequiresRoot
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
RequiresRoot: This command requires root access
|
||||
|
||||
"""
|
||||
|
||||
errno = 4006
|
||||
format = _('This command requires root access')
|
||||
|
||||
class BuiltinError(ExecutionError):
|
||||
"""
|
||||
**4100** Base class for builtin execution errors (*4100 - 4199*).
|
||||
|
||||
Reference in New Issue
Block a user