Uploaded image for project: 'Razor (moved to puppet.atlassian.net)'
  1. Razor (moved to puppet.atlassian.net)
  2. RAZOR-208

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • RAZOR 0.14.1
    • RAZOR 0.15.0
    • Client, QA
    • None

    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

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

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support