Alon Bar-Lev has uploaded a new change for review. Change subject: core: use before/after feature ......................................................................
core: use before/after feature Change-Id: I3ba635aa28c7c9c5047ea400de111dae2683fda8 Signed-off-by: Alon Bar-Lev <alo...@redhat.com> --- M src/plugins/ovirt-host-deploy/core/misc.py M src/plugins/ovirt-host-deploy/core/offlinepackager.py 2 files changed, 8 insertions(+), 3 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-host-deploy refs/changes/80/11780/1 diff --git a/src/plugins/ovirt-host-deploy/core/misc.py b/src/plugins/ovirt-host-deploy/core/misc.py index 234a4a8..caabb77 100644 --- a/src/plugins/ovirt-host-deploy/core/misc.py +++ b/src/plugins/ovirt-host-deploy/core/misc.py @@ -45,7 +45,10 @@ @plugin.event( stage=plugin.Stages.STAGE_BOOT, - priority=plugin.Stages.PRIORITY_FIRST, + before=[ + otopicons.Stages.CORE_LOG_INIT, + otopicons.Stages.CORE_CONFIG_INIT, + ], ) def _preinit(self): self.environment.setdefault( @@ -118,7 +121,6 @@ @plugin.event( stage=plugin.Stages.STAGE_CLOSEUP, - priority=plugin.Stages.PRIORITY_FIRST, condition=lambda self: ( self.environment[ odeploycons.CoreEnv.FORCE_REBOOT diff --git a/src/plugins/ovirt-host-deploy/core/offlinepackager.py b/src/plugins/ovirt-host-deploy/core/offlinepackager.py index b6f727b..84fddf5 100644 --- a/src/plugins/ovirt-host-deploy/core/offlinepackager.py +++ b/src/plugins/ovirt-host-deploy/core/offlinepackager.py @@ -25,6 +25,7 @@ _ = lambda m: gettext.dgettext(message=m, domain='ovirt-host-deploy') +from otopi import constants as otopicons from otopi import packager from otopi import util from otopi import plugin @@ -63,7 +64,9 @@ @plugin.event( stage=plugin.Stages.STAGE_INIT, - priority=plugin.Stages.PRIORITY_MEDIUM, + after=[ + otopicons.Stages.PACKAGERS_DETECTION, + ], ) def _init(self): if self.environment.setdefault( -- To view, visit http://gerrit.ovirt.org/11780 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I3ba635aa28c7c9c5047ea400de111dae2683fda8 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-host-deploy Gerrit-Branch: master Gerrit-Owner: Alon Bar-Lev <alo...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches