diff options
author | Jake Hunsaker <jhunsake@redhat.com> | 2021-05-14 16:12:25 -0400 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2021-08-02 10:35:40 -0400 |
commit | 7df45d4cc81646fe95234c6c496fc44b6a18d4ed (patch) | |
tree | f4b9d489ce772b3f42ebe4461c9ee5439d6757e1 /tests | |
parent | 22de3d5725efb2cfffadd38f832d56876e4ea4b3 (diff) | |
download | sos-7df45d4cc81646fe95234c6c496fc44b6a18d4ed.tar.gz |
[report] Fix display of default values in --list for magic values
When plugin options use a magic value as a placeholder for logic checks
used during collections, those magic values can be confusing to users
when reported via `--list`.
This was originally limited to the timeout-related options, and was
mitigated by a note in the option description. However, this approach is
not maintainable as more plugin options implement magic values to allow
complex determination of what the actual value should be during an
execution - for example, with the new `--namespaces` option and plugin
options allowing users to override that global value.
Fix the former by implementing a `TIMEOUT_DEFAULT` constant. Fix the
latter by reassigning the internal magic value from `None` to the
implied value of `0`.
Related: #2547
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions