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

Change subject: core: executePipe: call callback only if set
......................................................................

core: executePipe: call callback only if set

Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1214724
Change-Id: I4a8e12876aebf4e8700e94444ebe14063e63ad68
Signed-off-by: Alon Bar-Lev <alo...@redhat.com>
---
M ChangeLog
M src/otopi/plugin.py
2 files changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/otopi refs/changes/81/40181/1

diff --git a/ChangeLog b/ChangeLog
index 002ac83..112aaaf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 
 ????-??-?? - Version 1.3.2
 
+ * core: executePipe: call callback only if set rhbz#1214724.
 
 2015-01-15 - Version 1.3.1
 
diff --git a/src/otopi/plugin.py b/src/otopi/plugin.py
index 47ab123..a9c3dcb 100644
--- a/src/otopi/plugin.py
+++ b/src/otopi/plugin.py
@@ -388,7 +388,8 @@
                 ) < now
             ):
                 _callCallback.next = datetime.datetime.now()
-                callback(state=popens)
+                if callback:
+                    callback(state=popens)
 
         def _isString(s):
             return (


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4a8e12876aebf4e8700e94444ebe14063e63ad68
Gerrit-PatchSet: 1
Gerrit-Project: otopi
Gerrit-Branch: otopi-1.3
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