summaryrefslogtreecommitdiff
path: root/ironic_python_agent/api
diff options
context:
space:
mode:
authorChris Behrens <cbehrens@codestud.com>2014-04-21 00:04:42 -0700
committerChris Behrens <cbehrens@codestud.com>2014-04-21 00:05:54 -0700
commitab46681e33506bd2214a7c520ce945134d4c5c7c (patch)
treed1533450b67d926619580f5660dbab2a6e7b176a /ironic_python_agent/api
parent0436f1dbfeeedb782940b887ca1dfc4f96da8679 (diff)
downloadironic-python-agent-ab46681e33506bd2214a7c520ce945134d4c5c7c.tar.gz
Fix wait argument on POST
Its type was not declared. Adds tests for this. Change-Id: Iba05ce38f7548cc8400ac78493ef16b5e69905bb
Diffstat (limited to 'ironic_python_agent/api')
-rw-r--r--ironic_python_agent/api/controllers/v1/command.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ironic_python_agent/api/controllers/v1/command.py b/ironic_python_agent/api/controllers/v1/command.py
index 5815c4fa..26cc82ac 100644
--- a/ironic_python_agent/api/controllers/v1/command.py
+++ b/ironic_python_agent/api/controllers/v1/command.py
@@ -65,7 +65,7 @@ class CommandController(rest.RestController):
return CommandResultList.from_results(results)
@wsme_pecan.wsexpose(CommandResult, types.text, types.text)
- def get_one(self, result_id, wait=False):
+ def get_one(self, result_id, wait=None):
agent = pecan.request.agent
result = agent.get_command_result(result_id)
@@ -74,8 +74,8 @@ class CommandController(rest.RestController):
return CommandResult.from_result(result)
- @wsme_pecan.wsexpose(CommandResult, body=Command)
- def post(self, wait=False, command=None):
+ @wsme_pecan.wsexpose(CommandResult, types.text, body=Command)
+ def post(self, wait=None, command=None):
# the POST body is always the last arg,
# so command must be a kwarg here
if command is None: