Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-22513

Make yumrpm.py functions to use global defined commands

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • trunk
    • trunk, 2.6.2
    • None
    • None

    Description

      At the global space of yumrmp we defining the list of command available for the module:

      ALL_INSTALLED_PACKAGES_CMD = [AMBARI_SUDO_BINARY, "yum", "list", "installed", "--noplugins"]
      ALL_AVAILABLE_PACKAGES_CMD = [AMBARI_SUDO_BINARY, "yum", "list", "available", "--noplugins"]
      

      but not using them at the functions:

      • _get_installed_packages
      • _get_available_packages

      What makes them to ignore changes made in command definition constants

      Attachments

        1. AMBARI-22513.patch
          5 kB
          Dmytro Grinenko

        Issue Links

          Activity

            People

              hapylestat Dmytro Grinenko
              hapylestat Dmytro Grinenko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: