[node-patches] Change in ovirt-node[master]: Make utils.console.TransactionProgress.run_transaction public

rbarry at redhat.com rbarry at redhat.com
Wed Mar 4 21:41:19 UTC 2015


Ryan Barry has uploaded a new change for review.

Change subject: Make utils.console.TransactionProgress.run_transaction public
......................................................................

Make utils.console.TransactionProgress.run_transaction public

Make run_transaction public so we can subclass it in the dbus
wrapper method and only re-implement the parts of it which write
to the console, not everything

Change-Id: If141e38bfff63c50b8f445922b15621bb753a603
Signed-off-by: Ryan Barry <rbarry at redhat.com>
---
M src/ovirt/node/utils/console.py
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/93/38393/1

diff --git a/src/ovirt/node/utils/console.py b/src/ovirt/node/utils/console.py
index 2f2a816..898a27a 100644
--- a/src/ovirt/node/utils/console.py
+++ b/src/ovirt/node/utils/console.py
@@ -108,7 +108,7 @@
     def run(self):
         if self.transaction:
             self.logger.debug("Initiating transaction")
-            self.__run_transaction()
+            self.run_transaction()
         else:
             self.add_update("There were no changes, nothing to do.")
 
@@ -116,7 +116,7 @@
         writeln([self.transaction.title,
                  "-" * len(self.transaction.title)])
 
-    def __run_transaction(self):
+    def run_transaction(self):
         try:
             self.__print_title()
             self.logger.debug("Preparing transaction for console %s" %


-- 
To view, visit https://gerrit.ovirt.org/38393
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If141e38bfff63c50b8f445922b15621bb753a603
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Ryan Barry <rbarry at redhat.com>



More information about the node-patches mailing list