Validate --lines with `openstack console log show`
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
Fix Released
|
Medium
|
xiexs |
Bug Description
The behaviors seem inconsistent for the "openstack console log --lines show", while the line number is specified with different negative numbers.
For instance:
1) $ openstack console log show --lines -10 test_server
Invalid input for field/attribute length. Value: -9. -9 is less than the minimum of -1 (HTTP 400) (Request-ID: req-25afc42f-
$echo $?
1
2) $ openstack console log show --lines -1 test_server
$ echo $?
0
3) $ openstack console log show --lines -2 test_server
>>output the all console log<<
$ echo $?
0
And the reason for this issue is because there is no validating for the --lines parameter.
Changed in python-openstackclient: | |
assignee: | nobody → xiexs (xiexs) |
Changed in python-openstackclient: | |
importance: | Undecided → Medium |
summary: |
- Miss checking the line number for OSC "openstack console log show" + Validate --lines with `openstack console log show` |
Changed in python-openstackclient: | |
milestone: | none → 1.9.0 |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/240804
Review: https:/