Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-5132

certificate_status does not correctly pluralize to certificate_statuses

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: PUP 3.8.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Puppet 3.8.1, RHEL 7

    • Template:

      Description

      Using:

      Puppet::SSL::Host.ca_location = :remote
      Puppet::SSL::Host.indirection.search("key").inspect
      

      produces a request to the puppet server that looks like this:

      GET /production/certificate_statuss/key

      because of this line lib/puppet/network/http/api/v1.rb#L203

      Changing

      return(indirection == "status" ? "statuses" : indirection + "s")
      

      to

      return(indirection =~ /status/ ? indirection.sub(/status/, "statuses") : indirection + "s")
      

      solves the problem but I am not sure if it passes regression testing.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              jasonkincl Jason Kincl
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support