URL: https://github.com/freeipa/freeipa/pull/182
Title: #182: Use env var IPA_CONFDIR to get confdir for 'cli' context

jcholast commented:
"""
In custom Python scripts, you have to call `api.bootstrap()`, so you may as 
well call `api.bootstrap(confdir='/path/to/confdir')`. You may even call 
`api.bootstrap(confdir=os.environ['IPA_CONFDIR'])`, so this PR is not necessary 
for custom scripts at all.

Instead of setting an env var, you can create an alias for `ipa -e 
confdir=/path/to/confdir`, which is equally easy.
"""

See the full comment at 
https://github.com/freeipa/freeipa/pull/182#issuecomment-255986281
-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to