Loading the framework creates ~/.ipa to store logs, per-user config, etc.

We don't want this happening during a make, it's kinda creepy.

rob
>From e14c23edf37f7786e9b74d9d445456e9e97ab023 Mon Sep 17 00:00:00 2001
From: Rob Crittenden <rcrit...@redhat.com>
Date: Fri, 14 Jan 2011 16:45:37 -0500
Subject: [PATCH] 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.
---
 ipalib/plugable.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ipalib/plugable.py b/ipalib/plugable.py
index d9884c7..264bb68 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:
-- 
1.7.3.4

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to