Skip to content

Commit

Permalink
setup: Put unique name to remote engine cleanup event
Browse files Browse the repository at this point in the history
Some actions need to be executed in closeup stage before remote engine
is cleaned up, so the clean up action need to have unique name.

Bug-Url: https://bugzilla.redhat.com/2122174
Signed-off-by: Martin Perina <mperina@redhat.com>
  • Loading branch information
mwperina authored and mrkev-gh committed Aug 31, 2022
1 parent 59f97d9 commit 6011b27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packaging/setup/ovirt_engine_setup/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ class Stages(object):

SETUP_SELINUX = 'osetup.setup.selinux'

REMOTE_ENGINE_CLEANUP = 'osetup.remote.engine.cleanup'


@util.export
@util.codegen
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def _setup(self):
] = remote_engine.RemoteEngine(plugin=self)

@plugin.event(
name=osetupcons.Stages.REMOTE_ENGINE_CLEANUP,
stage=plugin.Stages.STAGE_CLOSEUP,
)
def _cleanup(self):
Expand Down

0 comments on commit 6011b27

Please sign in to comment.