Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D243510AF1 for ; Wed, 28 May 2014 16:21:01 +0000 (UTC) Received: (qmail 9511 invoked by uid 500); 28 May 2014 16:21:01 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 9487 invoked by uid 500); 28 May 2014 16:21:01 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 9479 invoked by uid 99); 28 May 2014 16:21:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 May 2014 16:21:01 +0000 Date: Wed, 28 May 2014 16:21:01 +0000 (UTC) From: "Dmytro Sen (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AMBARI-5911) OS constants should be located in one place MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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)