Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-34972

cblogredaction fails when no -v flag supplied

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 6.5.0
    • 6.0.0, 6.0.1, 6.5.0
    • tools
    • Untriaged
    • Unknown

    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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            carlos.gonzalez Carlos Gonzalez Betancort (Inactive)
            toby.wilds Toby Wilds (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty