kickstart needs to quote argument vector when outputting it to yaml

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • master, 5.0.0
    • Affects Version/s: master
    • Component/s: pegasus-kickstart
    • None

      it seems yaml record generated by kickstart is malformed when they are quotes in an argument value. for one of our user's workflow kickstart generated the following snippet, that is breaking the yaml parsers

      argument_vector:

      • "/home/scitech/shared-data/sample-geoedf-wf/mcd15-viz.yml"
      • "1"
      • "Input"
      • "NASAInput"
      • "/home/scitech/shared-data/sample-geoedf-wf/1600793629/stage-1-Input.yml"
      • "/data/1600793629"
      • "/home/scitech/shared-data/sample-geoedf-wf/1600793629"
      • "None"
      • "None"
      • "None"
      • " {"password": "xxxxx"}

        "

      • "None"
      • "condorpool"

      The above is invalid yaml because of the quotes in the - "

      {"password": "NASAservice123"}

      "

      instead it should have been
      argument_vector:

      • "/home/scitech/shared-data/sample-geoedf-wf/mcd15-viz.yml"
      • "1"
      • "Input"
      • "NASAInput"
      • "/home/scitech/shared-data/sample-geoedf-wf/1600793629/stage-1-Input.yml"
      • "/data/1600793629"
      • "/home/scitech/shared-data/sample-geoedf-wf/1600793629"
      • "None"
      • "None"
      • "None"
      • " {\"password\": \"xxxxx\"}

        "

      • "None"
      • "condorpool"

      am attaching the kickstart output and also the planner generated invocation where the strings were escaped correctly

            Assignee:
            Mats Rynge
            Reporter:
            Karan Vahi
            Archiver:
            Rajiv Mayani

              Created:
              Updated:
              Resolved:
              Archived: