Alon Bar-Lev has uploaded a new change for review. Change subject: core: misc: respect OTOPI_CONFIG environment variable ......................................................................
core: misc: respect OTOPI_CONFIG environment variable Change-Id: Icb13ec3c363218e5c65abb66463779828a84fb5d Signed-off-by: Alon Bar-Lev <[email protected]> --- M src/plugins/ovirt-host-deploy/core/misc.py 1 file changed, 9 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-host-deploy refs/changes/86/11286/1 diff --git a/src/plugins/ovirt-host-deploy/core/misc.py b/src/plugins/ovirt-host-deploy/core/misc.py index eb95f87..938c068 100644 --- a/src/plugins/ovirt-host-deploy/core/misc.py +++ b/src/plugins/ovirt-host-deploy/core/misc.py @@ -21,6 +21,7 @@ """Misc plugin.""" +import os import gettext _ = lambda m: gettext.dgettext(message=m, domain='ovirt-host-deploy') @@ -53,7 +54,14 @@ ) self.environment.setdefault( otopicons.CoreEnv.CONFIG_FILE_NAME, - odeploycons.FileLocations.OVIRT_HOST_DEPLOY_CONFIG_FILE + self.resolveFile( + os.environ.get( + otopicons.SystemEnvironment.CONFIG, + self.resolveFile( + odeploycons.FileLocations.OVIRT_HOST_DEPLOY_CONFIG_FILE + ) + ) + ) ) self.environment[ odeploycons.CoreEnv.INTERFACE_VERSION -- To view, visit http://gerrit.ovirt.org/11286 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Icb13ec3c363218e5c65abb66463779828a84fb5d Gerrit-PatchSet: 1 Gerrit-Project: ovirt-host-deploy Gerrit-Branch: master Gerrit-Owner: Alon Bar-Lev <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
