summaryrefslogtreecommitdiffstats
path: root/ipalib/errors.py
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2016-12-02 13:16:13 +0100
committerJan Cholasta <jcholast@redhat.com>2016-12-02 15:05:33 +0100
commitc2934aaa7eacb8390209a38029145b1c240d864c (patch)
tree299f4f0ba4f5f82c2b037681745db9908f793beb /ipalib/errors.py
parentd4916254e995be1118ab8dbce5b60091305f97fe (diff)
downloadfreeipa-c2934aaa7eacb8390209a38029145b1c240d864c.tar.gz
freeipa-c2934aaa7eacb8390209a38029145b1c240d864c.tar.xz
freeipa-c2934aaa7eacb8390209a38029145b1c240d864c.zip
Raise errors.EnvironmentError if IPA_CONFDIR var is incorrectly used
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipalib/errors.py')
-rw-r--r--ipalib/errors.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ipalib/errors.py b/ipalib/errors.py
index d1fe5f0ac..88707ac31 100644
--- a/ipalib/errors.py
+++ b/ipalib/errors.py
@@ -445,6 +445,13 @@ class RefererError(PublicError):
format = _('Missing or invalid HTTP Referer, %(referer)s')
+class EnvironmentError(PublicError):
+ """
+ **912** Raised when a command is called with invalid environment settings
+ """
+
+ errno = 912
+
##############################################################################
# 1000 - 1999: Authentication errors
class AuthenticationError(PublicError):