Methods w/o parameters don't have a parameters object in discovery.

This commit is contained in:
Joe Gregorio
2010-09-09 14:32:43 -04:00
parent b8262fcaa0
commit 4292c6e6d6

View File

@@ -163,6 +163,7 @@ def createResource(http, baseUrl, model, resourceName, resourceDesc,
pattern_params = {} # Parameters that must match a regex
query_params = [] # Parameters that will be used in the query string
path_params = {} # Parameters that will be used in the base URL
if 'parameters' in methodDesc:
for arg, desc in methodDesc['parameters'].iteritems():
param = key2param(arg)
argmap[param] = arg