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

tiran freeipa-github-notification at redhat.com
Wed Nov 9 16:40:19 UTC 2016


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

tiran commented:
"""
ipapython.admintool.ScriptError still prints the full traceback:

```
$ IPA_CONFDIR=/tmp/ipa ./ipa
[2016-11-09T16:35:38Z ipa] <ERROR>: ScriptError: IPA_CONFDIR must be an absolute path to an existing directory.
Traceback (most recent call last):
  File "/home/heimes/redhat/freeipa/ipalib/cli.py", line 1345, in run
    (_options, argv) = api.bootstrap_with_global_options(context='cli')
  File "/home/heimes/redhat/freeipa/ipalib/plugable.py", line 580, in bootstrap_with_global_options
    self.bootstrap(parser, **overrides)
  File "/home/heimes/redhat/freeipa/ipalib/plugable.py", line 436, in bootstrap
    self.env._bootstrap(**overrides)
  File "/home/heimes/redhat/freeipa/ipalib/config.py", line 470, in _bootstrap
    'IPA_CONFDIR must be an absolute path to an '
ScriptError: IPA_CONFDIR must be an absolute path to an existing directory.
[2016-11-09T16:35:38Z ipa] <ERROR>: an internal error has occurred
```
"""

See the full comment at https://github.com/freeipa/freeipa/pull/182#issuecomment-259460953


More information about the Freeipa-devel mailing list