[Freeipa-devel] [freeipa PR#182][comment] Use env var IPA_CONFDIR to get confdir for 'cli' context

jcholast freeipa-github-notification at redhat.com
Tue Oct 25 09:36:24 UTC 2016


  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


More information about the Freeipa-devel mailing list