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

Failed to parse the ouput of executing Ansible playbooks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Frankfurt Release
    • Frankfurt Release
    • distribution
    • None

      There are some problems to parse the ouput of executing Ansible playbooks:

      1. If don't set the parameter universal_newlines to True for p = subprocess.Popen(), the return value of p.communicate() is bytes not str for Python3;
      2. Parse string like "ok=6 changed=5 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0" error, and can't get the right value of failed_flag.

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

              Created:
              Updated:
              Resolved: