You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Dmytro Sen (JIRA)" <ji...@apache.org> on 2014/05/30 16:25:01 UTC

[jira] [Resolved] (AMBARI-5911) OS constants should be located in one place

     [ https://issues.apache.org/jira/browse/AMBARI-5911?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmytro Sen resolved AMBARI-5911.
--------------------------------

    Resolution: Fixed

Committed to trunk

> 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)