st2 key list --last 1 does not print truncation note
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 6.5k
- Forks
- 787
- PR merge metrics
- No merged PRs in 30d
Description
SUMMARY
Found by the BATS tests.
st2 key list -n 1 does truncate the result list, but it does not print the truncation note.
Output:
+-----------+------------+--------+-----------+--------------+------+------------------+
| name | value | secret | encrypted | scope | user | expire_timestamp |
+-----------+------------+--------+-----------+--------------+------+------------------+
| name=asdf | value=fdsa | False | False | st2kv.system | | |
+-----------+------------+--------+-----------+--------------+------+------------------+
ISSUE TYPE
Pick one below and delete the rest:
- Bug Report
STACKSTORM VERSION
Paste the output of st2 --version:
st2 3.1dev (b88f9a3), on Python 2.7.12
OS / ENVIRONMENT / INSTALL METHOD
Ubuntu 16.04
STEPS TO REPRODUCE
Ensure that two or more keys exist, then run st2 key list -n 1.
EXPECTED RESULTS
The truncated list and the truncation note should be printed.
ACTUAL RESULTS
The truncation note is not printed.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the st2 key list -n 1 CLI entry point and the BATS tests that exposed the issue. Reproduce the command with at least two keys, then trace how the truncated result and truncation note are handled. Done means the list and its truncation note are both printed, with the relevant BATS test passing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100