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

OS constants should be located in one place

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.1
    • 1.6.1
    • ambari-agent, ambari-server
    • None

    Description

      OS constants are defined in several places like HostInfo.py in agent, utils.py in server. Definition of constants should be moved to os_check.py to avoid possibly difference between constants in HostInfo.py and utils.py.
      HostInfo.py
      OS_UBUNTU_DEBIAN = 'debian'
      OS_UBUNTU = 'ubuntu'
      OS_FEDORA = 'fedora'
      OS_OPENSUSE = 'opensuse'
      OS_SUSE = 'suse'
      OS_SUSE_ENTERPRISE = 'sles'
      utils.py
      OS_UBUNTU = 'ubuntu'
      OS_FEDORA = 'fedora'
      OS_OPENSUSE = 'opensuse'
      OS_SUSE = 'suse'
      OS_SUSE_ENTERPRISE = 'sles'

      Attachments

        Issue Links

          Activity

            People

              dsen Dmytro Sen
              dsen Dmytro Sen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: