Uploaded image for project: 'Razor'
  1. Razor
  2. RAZOR-208

Cannot use both short and long forms for task in create-repo

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: RAZOR 0.14.1
    • Fix Version/s: RAZOR 0.15.0
    • Component/s: Client, QA
    • Labels:
      None
    • Template:
    • Epic Link:
    • Story Points:
      1
    • Sprint:
      April 23, May 7

      Description

      The client currently does not allow 'reference' types for arguments. This type would mean a variable could be either a string (transmitted as a string) or a JSON string (transmitted as JSON). The immediate need for this feature is `create-repo`'s `task` argument to accept both forms:

      razor create-repo --name name --iso-url some_url --task noop
      

      and

      razor create-repo --name name --iso-url some_url --task '{"name": "noop"}'
      

      If the 'reference' argument can be parsed as JSON, it will use JSON, otherwise it will send the whole string.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              phong Phong Ly
              Reporter:
              scott.mcclellan Scott McClellan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support