Itamar Heim has submitted this change and it was merged.
Change subject: packaging: setup: add constants list to the engine
......................................................................
packaging: setup: add constants list to the engine
The current implementation saves to answerfile and
postinstall file only values appearing in constants.py
and matching certain criteria, ignoring any additional
constants files existing.
The new implementation brings a new structure that holds
all constants objects, and updates the answerfile/postinstallfile
implementations to work on all elements of this structure.
To use the new method, a 3rd party plugin bringing its own
constants file should add its object to environment variable
osetupcons.CoreEnv.SETUP_ATTRS_MODULES dict.
For example, for additional constants_add.py, we do:
import constants_add as constadd
self.environment[
osetupcons.CoreEnv.SETUP_ATTRS_MODULES
].append(constadd)
Change-Id: I6c919ed564003ed93300a84fc9072443eb865cf0
Bug-Url:
https://bugzilla.redhat.com/1013790
Signed-off-by: Alex Lourie <alourie(a)redhat.com>
(cherry picked from commit 63558007f1955f48912a73c7758e90c2cc4fec03)
(cherry picked from commit d636638fe16bc68fc149ff4d43d44f78ba1c9bf0)
---
M packaging/setup/ovirt_engine_setup/constants.py
M packaging/setup/plugins/ovirt-engine-common/core/answerfile.py
M packaging/setup/plugins/ovirt-engine-common/core/misc.py
M packaging/setup/plugins/ovirt-engine-common/core/postinstall.py
4 files changed, 18 insertions(+), 2 deletions(-)
Approvals:
Itamar Heim: Verified; Looks good to me, approved
--
To view, visit
http://gerrit.ovirt.org/20386
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I6c919ed564003ed93300a84fc9072443eb865cf0
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.3
Gerrit-Owner: Alex Lourie <alourie(a)redhat.com>
Gerrit-Reviewer: Alex Lourie <alourie(a)redhat.com>
Gerrit-Reviewer: Itamar Heim <iheim(a)redhat.com>
Gerrit-Reviewer: Ofer Schreiber <oschreib(a)redhat.com>
Gerrit-Reviewer: Sandro Bonazzola <sbonazzo(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server