Uploaded image for project: 'Common Controller SDK'
  1. Common Controller SDK
  2. CCSDK-3531

CDS cmd-exec enhancement to pass error message cleaner from CBA python scripts.

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • None
    • None

      This improvement adds functionality to allow end users to pass error messages in user-defined python scripts using methods: 

      • send_response_err_msg(ret_err_msg)
      • send_response_err_msg_and_exit(ret_err_msg, code=1)

      User CBA python script should handle their exceptions and then use the above function to pass the error message.

      Previous behaviour appended the entire STDOUT to the error message, which was very not clean.

      STDOUT is still available to be returned as normal:

       

      See the attached presentation on the improvement, and cmdexecerrors2.zip for the sample CBA examples of the python script usage.

        1. 2021-11-19 upstream cmdexdec errmsg improvement.pptx
          2.00 MB
          omimtl
        2. image-2021-11-23-09-19-23-610.png
          473 kB
          omimtl

            omimtl omimtl
            omimtl omimtl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: