[rhmessaging-commits] rhmessaging commits: r2825 - mgmt/trunk/mint/python/mint.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Mon Nov 17 13:51:43 EST 2008


Author: eallen
Date: 2008-11-17 13:51:43 -0500 (Mon, 17 Nov 2008)
New Revision: 2825

Modified:
   mgmt/trunk/mint/python/mint/schemaparser.py
Log:
Changed test for existence of arguments to be more explicit. An argument of False was not being passed to API. 

Modified: mgmt/trunk/mint/python/mint/schemaparser.py
===================================================================
--- mgmt/trunk/mint/python/mint/schemaparser.py	2008-11-17 18:39:47 UTC (rev 2824)
+++ mgmt/trunk/mint/python/mint/schemaparser.py	2008-11-17 18:51:43 UTC (rev 2825)
@@ -158,7 +158,7 @@
     actualArgs = "    actualArgs = list()\n"
     for arg in elem.query["arg"]:
       formalArgs += "%s, " % (arg["@name"])
-      actualArgs += "    if %s:\n" % (arg["@name"])
+      actualArgs += "    if %s is not None:\n" % (arg["@name"])
       actualArgs += "        actualArgs.append(%s)\n" % (arg["@name"])
 
     if (formalArgs != ", "):




More information about the rhmessaging-commits mailing list