mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Unify installer context to be 'installer'
'install' was being used in some places.
The context can be used to limit what configuration is
used for a given request so having consistency is
valuable.
This affected the force_schema_updates value in LDAPClient
which looks for api.env.context in ('installer', 'updates')
Related: https://pagure.io/freeipa/issue/8798
Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Rafael Guterres Jeffman <rjeffman@redhat.com>
This commit is contained in:
@@ -161,7 +161,7 @@ def main():
|
|||||||
api.bootstrap(
|
api.bootstrap(
|
||||||
in_server=True,
|
in_server=True,
|
||||||
debug=options.debug,
|
debug=options.debug,
|
||||||
context='install',
|
context='installer',
|
||||||
confdir=paths.ETC_IPA
|
confdir=paths.ETC_IPA
|
||||||
)
|
)
|
||||||
api.finalize()
|
api.finalize()
|
||||||
|
|||||||
@@ -294,7 +294,7 @@ def main():
|
|||||||
# override ra_plugin setting read from default.conf so that we have
|
# override ra_plugin setting read from default.conf so that we have
|
||||||
# functional dogtag backend plugins during CA install
|
# functional dogtag backend plugins during CA install
|
||||||
api.bootstrap(
|
api.bootstrap(
|
||||||
context='install', confdir=paths.ETC_IPA,
|
context='installer', confdir=paths.ETC_IPA,
|
||||||
in_server=True, ra_plugin='dogtag'
|
in_server=True, ra_plugin='dogtag'
|
||||||
)
|
)
|
||||||
api.finalize()
|
api.finalize()
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ def main():
|
|||||||
|
|
||||||
# Initialize the ipalib api
|
# Initialize the ipalib api
|
||||||
api.bootstrap(
|
api.bootstrap(
|
||||||
context='install', confdir=paths.ETC_IPA,
|
context='installer', confdir=paths.ETC_IPA,
|
||||||
in_server=True, debug=options.debug,
|
in_server=True, debug=options.debug,
|
||||||
)
|
)
|
||||||
api.finalize()
|
api.finalize()
|
||||||
|
|||||||
Reference in New Issue
Block a user