10gen / mongo-orchestration

Apache License 2.0
7 stars 11 forks source link

Better error message and documentation for setParameter #93

Closed jyemin closed 10 years ago

jyemin commented 10 years ago

There is no doc for how to use setParameter, which should be:

"procParams": { "setParameter": {"enableTestCommands" : 1} }

and if you do it wrong (like just pass a string), you get this error:

File \"/Users/jeff/clean/mongo-orchestration/lib/process.py\", line 265, in write_config\n for key, value in set_parameters.items():\n", "AttributeError: 'unicode' object has no attribute 'items'\n"

llvtt commented 10 years ago

better error message as of c444d6aaeef1afdc155625ef86e9a16180d6d3fa

llvtt commented 10 years ago

Documentation for handling of "setParameter" exists in the bottom paragraph here, right before "available response representations".