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

Remove deprecated method from Puppet::Provider::NameService

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 7.0.0
    • Component/s: None
    • Template:
    • Team:
      Night's Watch
    • Story Points:
      1
    • Sprint:
      NW - 2020-09-01
    • Release Notes:
      Enhancement
    • Release Notes Summary:
      Remove deprecated method Puppet::Provider::NameService#listbyname
    • QA Risk Assessment:
      Needs Assessment

      Description

      locales/puppet.pot:msgid "listbyname is deprecated and will be removed in a future release of Puppet. Please use `self.instances` to obtain a list of users."
      spec/unit/provider/nameservice_spec.rb:  describe "#listbyname" do
      spec/unit/provider/nameservice_spec.rb:      expect(Puppet).to receive(:deprecation_warning).with(/listbyname is deprecated/)
      spec/unit/provider/nameservice_spec.rb:      described_class.listbyname
      spec/unit/provider/nameservice_spec.rb:      expect(described_class.listbyname).to eq(%w{root foo})
      spec/unit/provider/nameservice_spec.rb:          described_class.listbyname
      spec/unit/provider/nameservice_spec.rb:          described_class.listbyname
      spec/unit/provider/nameservice_spec.rb:      expect(described_class.listbyname).to eq(%w{root bin})
      spec/unit/provider/nameservice_spec.rb:      described_class.listbyname {|x| yield_results << x }
      lib/puppet/provider/nameservice.rb:    def listbyname
      lib/puppet/provider/nameservice.rb:      Puppet.deprecation_warning(_("listbyname is deprecated and will be removed in a future release of Puppet. Please use `self.instances` to obtain a list of users."))
      

        Attachments

          Activity

            People

            Assignee:
            ciprian.badescu Ciprian Badescu
            Reporter:
            gheorghe.popescu Gheorghe Popescu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support