[OE-core] [PATCH 1/1] send-error-report: Add --no-ssl to use http protocol

Burton, Ross ross.burton at intel.com
Mon Mar 4 10:56:50 UTC 2019


On Mon, 4 Mar 2019 at 10:30, Robert Yang <liezhi.yang at windriver.com> wrote:
> +    arg_parse.add_argument("--no-ssl",
> +                           help="Use http instead of https protocol",
> +                           action="store_true")

If you do this instead:

arg_parse.add_argument("--no-ssl", help="Use http instead of https protocol",
      dest="protocol", action="store_const", const="http", default="https")

Then you can just use args.protocol instead of having to pass around
the protocol name.

Ross


More information about the Openembedded-core mailing list