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

couchbase-cli: Reduce type flipping

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Minor
    • Morpheus
    • 5.5.0
    • tools
    • None

    Description

      In a number of places in cbmgr.py "type" of a object is converted:

             if opts.enabled == "1":
                  opts.enabled = "true"
              elif opts.enabled == "0":
                  opts.enabled = "false"
      

      It should be possible to get arg_parse to do this via a help function:

      https://stackoverflow.com/questions/15008758/parsing-boolean-values-with-argparse

      Attachments

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

        Activity

          People

            pvarley Patrick Varley (Inactive)
            pvarley Patrick Varley (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty