old_contents: """
  Bash Version
  ============
  
  This is a simple rule and can be run against the local host
  using the following command::
  
  $ insights-run -p examples.rules.bash_version
  
  or from the examples/rules directory::
  
  $ python sample_rules.py
  """
  from insights.core.plugins import make_pass, rule
  from insights.parsers.installed_rpms import InstalledRpms
  
  KEY = "BASH_VERSION"
  
  CONTENT = "Bash RPM Version: {{ bash_version }}"
  
  
  @rule(InstalledRpms)
  def report(rpms):
      bash_ver = rpms.get_max('bash')
      return make_pass(KEY, bash_version=bash_ver)
  
new_contents: """
  Bash Version
  ============
  
  This is a simple rule and can be run against the local host
  using the following command::
  
  $ insights-run -p examples.rules.bash_version
  
  or from the examples/rules directory::
  
  $ python sample_rules.py
  """
  from insights.core.plugins import make_info, rule
  from insights.parsers.installed_rpms import InstalledRpms
  
  KEY = "BASH_VERSION"
  
  CONTENT = "Bash RPM Version: {{ bash_version }}"
  
  
  @rule(InstalledRpms)
  def report(rpms):
      bash = rpms.get_max('bash')
      return make_info(KEY, bash_version=bash.nvra)
  
subject: Return the nvra instead of the InstalledRpm object. (#2101)