Description
If no -v or --verbose flag is supplied to cblogredaction, it will crash with:
Traceback (most recent call last):
|
File "/opt/couchbase/lib/python/cblogredaction", line 155, in <module>
|
_main()
|
File "/opt/couchbase/lib/python/cblogredaction", line 119, in _main
|
if args.verbose >= 2:
|
TypeError: '>=' not supported between instances of 'NoneType' and 'int'
|
To fix, we should simply provide a default value of 0 in the add_argument for verbosity.
Attachments
For Gerrit Dashboard: MB-34972 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
111810,2 | MB-34972 Fix cblogredaction error when -v not given | master | couchbase-cli | Status: MERGED | +2 | +1 |