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

razor-client not handling empty boolean arguments

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: razor-client 1.9.4
    • Fix Version/s: razor-client 1.9.5
    • Component/s: Client
    • Labels:
    • Template:
    • Team:
      Skeletor
    • Sprint:
      Skeletor Kanban 20190828, Skeletor Kanban 20190911
    • Release Notes:
      Not Needed
    • QA Risk Assessment:
      Needs Assessment

      Description

      Given this example:

      razor create-policy ... --enabled --hostname 'host${id}.com' ...
      

      Razor 1.9.4 is thinking --hostname is the value for --enabled, and 'host${id}.com' is then treated as a positional argument.

      In Scope

      • The value for boolean-typed arguments must be one of:
        • blank/nil — evaluates to "true"
        • "true"
        • "false"
      • Any boolean value matching "-[a-z]..." or "--[a-z]..." should be counted as the next argument.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support