[gnome-ostree] plugin: Pass status parameter through



commit ea8bd8ecef1f964c9f56aaded5dc3edf053235fc
Author: Colin Walters <walters verbum org>
Date:   Fri Aug 30 16:34:03 2013 -0400

    plugin: Pass status parameter through
    
    Otherwise we throw an exception which supybot silently eats.

 extras/supybot/GNOMEOSTree/plugin.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/extras/supybot/GNOMEOSTree/plugin.py b/extras/supybot/GNOMEOSTree/plugin.py
index 392385a..bc5a400 100644
--- a/extras/supybot/GNOMEOSTree/plugin.py
+++ b/extras/supybot/GNOMEOSTree/plugin.py
@@ -66,7 +66,7 @@ class GNOMEOSTree(callbacks.Plugin):
         for taskname in self._announce_periodic_tasks:
             self._query_new_task(taskname, status=status, announce_periodic=True)
 
-    def _update_task_state(self, taskname):
+    def _update_task_state(self, taskname, status=False):
         current_task_path = os.path.join(self._workdir, 'tasks/%s/current' % (taskname, ))
         meta_path = os.path.join(current_task_path, 'meta.json')
         if not os.path.exists(meta_path):
@@ -95,7 +95,7 @@ class GNOMEOSTree(callbacks.Plugin):
         return (last_state, last_version, success_changed)
 
     def _query_new_task(self, taskname, status=False, announce_success=False, announce_periodic=False):
-        querystate = self._update_task_state(taskname)
+        querystate = self._update_task_state(taskname, status=status)
         if querystate is None:
             return
         (last_state, last_version, success_changed) = querystate


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]