From c2934aaa7eacb8390209a38029145b1c240d864c Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Fri, 2 Dec 2016 13:16:13 +0100 Subject: Raise errors.EnvironmentError if IPA_CONFDIR var is incorrectly used Reviewed-By: Jan Cholasta --- ipalib/errors.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ipalib/errors.py') 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): -- cgit