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

Custom gem provider does not issue the right command to uninstall gem

    Details

    • Template:
    • Story Points:
      3
    • Sprint:
      RE 2015-03-25, RE 2015-04-08
    • Release Notes:
      Bug Fix

      Description

      Calling the uninstall method on a custom gem provider where a custom command has been defined, results in the wrong command being issued.

      For example, sensu-puppet uses the sensu_gem provider in order to uninstall gems from the sensu embedded version of ruby.

      https://github.com/sensu/sensu-puppet/blob/master/lib/puppet/provider/package/sensu_gem.rb

      When 'ensure => absent' a given gem, '/usr/bin/gem uninstall [gem_name]' is executed rather than '/opt/sensu/embedded/bin/gem uninstall [gem_name]'.

      The custom provider sensu_gem doesn't contain logic to overwrite the puppet gem provider behaviour, except from the :gemcmd to be issued.

      'ensure => present' a given gem results in the correct command to be issued.

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                queeno Simon Aquino
                QA Contact:
                Eric Thompson
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: