summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2011-01-14 16:45:37 -0500
committerSimo Sorce <ssorce@redhat.com>2011-01-14 17:26:49 -0500
commit84ff4ca0f1272bff2f3046db53d1ce4007f46e15 (patch)
tree0dd48c8bce31efa7c7b9f6b6b95dbc2ba8ee9e01 /ipalib
parentf8c7afd15c8e4973207e6b52944edfd118d69083 (diff)
downloadfreeipa-84ff4ca0f1272bff2f3046db53d1ce4007f46e15.tar.gz
freeipa-84ff4ca0f1272bff2f3046db53d1ce4007f46e15.tar.xz
freeipa-84ff4ca0f1272bff2f3046db53d1ce4007f46e15.zip
Don't require or create the log dirs if we're just validating the API.
Fixes an error displayed in the automated builds, plus we don't want a Makefile messing around with our homedir.
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/plugable.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugable.py b/ipalib/plugable.py
index d9884c714..264bb68cf 100644
--- a/ipalib/plugable.py
+++ b/ipalib/plugable.py
@@ -385,7 +385,7 @@ class API(DictProxy):
# If logging has already been configured somewhere else (like in the
# installer), don't add handlers or change levels:
- if len(log.handlers) > 0:
+ if len(log.handlers) > 0 or self.env.validate_api:
return
if self.env.debug: