Raise errors.EnvironmentError if IPA_CONFDIR var is incorrectly used

Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
Petr Vobornik
2016-12-02 13:16:13 +01:00
committed by Jan Cholasta
parent d4916254e9
commit c2934aaa7e
3 changed files with 15 additions and 6 deletions

View File

@@ -717,10 +717,6 @@ class API(ReadOnly):
if self.env.env_confdir == self.env.confdir:
self.log.info(
"IPA_CONFDIR env sets confdir to '%s'.", self.env.confdir)
else:
self.log.warn(
"IPA_CONFDIR env is overridden by an explicit confdir "
"argument.")
for plugin in self.__plugins:
if not self.env.validate_api: