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

razor-client not handling empty boolean arguments

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • razor-client 1.9.4
    • razor-client 1.9.5
    • Client
    • Skeletor
    • Skeletor Kanban 20190828, Skeletor Kanban 20190911
    • Not Needed
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support