ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmytro Sen (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-5911) OS constants should be located in one place
Date Wed, 28 May 2014 16:21:01 GMT
Dmytro Sen created AMBARI-5911:
----------------------------------

             Summary: OS constants should be located in one place
                 Key: AMBARI-5911
                 URL: https://issues.apache.org/jira/browse/AMBARI-5911
             Project: Ambari
          Issue Type: Task
          Components: agent, controller
    Affects Versions: 1.6.1
            Reporter: Dmytro Sen
            Assignee: Dmytro Sen
             Fix For: 1.6.1


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'



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message