summaryrefslogtreecommitdiffstats
path: root/ipalib/cli.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/cli.py')
-rw-r--r--ipalib/cli.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py
index d66e1e2e..fc85dcb0 100644
--- a/ipalib/cli.py
+++ b/ipalib/cli.py
@@ -256,7 +256,8 @@ class CLI(object):
self.print_commands()
print 'Usage: ipa COMMAND'
sys.exit(2)
- self.api.env.update(config.generate_env())
+ env_dict = config.read_config()
+ self.api.env.update(config.generate_env(env_dict))
key = sys.argv[1]
if key not in self:
self.print_commands()