[rhmessaging-commits] rhmessaging commits: r2817 - mgmt/trunk/mint/python/mint.
rhmessaging-commits at lists.jboss.org
rhmessaging-commits at lists.jboss.org
Mon Nov 17 09:13:03 EST 2008
Author: eallen
Date: 2008-11-17 09:13:02 -0500 (Mon, 17 Nov 2008)
New Revision: 2817
Modified:
mgmt/trunk/mint/python/mint/schemaparser.py
Log:
Fix to allow 0 arguments to be passed in when there are no input arguments required.
Modified: mgmt/trunk/mint/python/mint/schemaparser.py
===================================================================
--- mgmt/trunk/mint/python/mint/schemaparser.py 2008-11-17 03:28:49 UTC (rev 2816)
+++ mgmt/trunk/mint/python/mint/schemaparser.py 2008-11-17 14:13:02 UTC (rev 2817)
@@ -158,7 +158,8 @@
actualArgs = " actualArgs = list()\n"
for arg in elem.query["arg"]:
formalArgs += "%s, " % (arg["@name"])
- actualArgs += " actualArgs.append(%s)\n" % (arg["@name"])
+ actualArgs += " if %s:\n" % (arg["@name"])
+ actualArgs += " actualArgs.append(%s)\n" % (arg["@name"])
if (formalArgs != ", "):
formalArgs = formalArgs[:-2]
More information about the rhmessaging-commits
mailing list