From 0ceba59d87d0e3b2ecce623367b34a0dd339c1c4 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Fri, 15 Oct 2010 15:03:51 -0400 Subject: Add Requires on ipa-client to ipa-admintools, ensure ipa client is configured It makes little sense to install ipa-admintools without ipa-client, require it. Also see if the client has been configured. This is a bit tricky since we have a full set of defaults. Add a new env option that gets set if at least one configuration file is loaded. ticket 213 --- ipalib/config.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ipalib/config.py') diff --git a/ipalib/config.py b/ipalib/config.py index 1dbd5b7c..91a18964 100644 --- a/ipalib/config.py +++ b/ipalib/config.py @@ -389,6 +389,8 @@ class Env(object): if key not in self: self[key] = value i += 1 + if 'config_loaded' not in self: # we loaded at least 1 file + self['config_loaded'] = True return (i, len(items)) def _join(self, key, *parts): -- cgit