summaryrefslogtreecommitdiffstats
path: root/nova/node.py
diff options
context:
space:
mode:
authorRoland Hochmuth <roland.hochmuth@hp.com>2012-07-21 10:52:41 +0100
committerRoland Hochmuth <roland.hochmuth@hp.com>2012-07-24 18:10:49 -0600
commit5522507bd7ff51ad8a55f8318c327ace3157675d (patch)
tree3c89ed8346187287517ecb7d020ac61864fb1c16 /nova/node.py
parentc94cbe223fffa57969d91219538bc3576e9893da (diff)
Return 400 in get_console_output for bad length.
Fixes bug 1027069. Prior to this fix if the length in the request body was set to a non-integer value a error code of 500 was returned. The documentation also shows an integer in the example request body. The fix tests if the optional length is provided and if it is either an "int" or "long". If not, a 400 error is returned. Additionally, cleaned up some error message to be more descriptive. Change-Id: I27a66fb1111e74665969f98e1101a9c37c665abc
Diffstat (limited to 'nova/node.py')
0 files changed, 0 insertions, 0 deletions