[rhmessaging-commits] rhmessaging commits: r1661 - mgmt/cumin/python/cumin.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Thu Feb 7 15:52:28 EST 2008


Author: justi9
Date: 2008-02-07 15:52:28 -0500 (Thu, 07 Feb 2008)
New Revision: 1661

Modified:
   mgmt/cumin/python/cumin/action.py
Log:
Fix exception handling in invocation status.



Modified: mgmt/cumin/python/cumin/action.py
===================================================================
--- mgmt/cumin/python/cumin/action.py	2008-02-07 20:50:55 UTC (rev 1660)
+++ mgmt/cumin/python/cumin/action.py	2008-02-07 20:52:28 UTC (rev 1661)
@@ -49,12 +49,12 @@
             elif item.status == "OK":
                 text = "Completed"
             else:
-                text = "Failed"
+                if item.exception:
+                    text = "Failed: " + \
+                        item.exception.__class__.__name__
+                else:
+                    text = "Failed: " + item.status
 
-                if item.status.exception:
-                    text = text + ": " + \
-                        item.status.exception.__class__.__name__
-
             return text
 
     def do_get_items(self, session, object):




More information about the rhmessaging-commits mailing list