Alon Bar-Lev has uploaded a new change for review.

Change subject: packaging: setup: print termination message
......................................................................

packaging: setup: print termination message

Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=999964
Change-Id: Ia2f27ba721f79606de38b83c04ce33095cf32b0b
Signed-off-by: Alon Bar-Lev <alo...@redhat.com>
---
M packaging/setup/plugins/ovirt-engine-common/core/misc.py
1 file changed, 21 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/40/18440/1

diff --git a/packaging/setup/plugins/ovirt-engine-common/core/misc.py 
b/packaging/setup/plugins/ovirt-engine-common/core/misc.py
index 46c93fb..96d0057 100644
--- a/packaging/setup/plugins/ovirt-engine-common/core/misc.py
+++ b/packaging/setup/plugins/ovirt-engine-common/core/misc.py
@@ -135,5 +135,26 @@
             ),
         )
 
+    @plugin.event(
+        stage=plugin.Stages.STAGE_TERMINATE,
+    )
+    def _terminate(self):
+        if self.environment[otopicons.BaseEnv.ERROR]:
+            self.logger.error(
+                _('Execution of {action} failed').format(
+                    action=self.environment[
+                        osetupcons.CoreEnv.ACTION
+                    ],
+                ),
+            )
+        else:
+            self.logger.info(
+                _('Execution of {action} completed successfully').format(
+                    action=self.environment[
+                        osetupcons.CoreEnv.ACTION
+                    ],
+                ),
+            )
+
 
 # vim: expandtab tabstop=4 shiftwidth=4


-- 
To view, visit http://gerrit.ovirt.org/18440
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia2f27ba721f79606de38b83c04ce33095cf32b0b
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
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

Reply via email to