Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8A9E72009F4 for ; Thu, 26 May 2016 18:58:19 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8949E160A2B; Thu, 26 May 2016 16:58:19 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 059F7160A17 for ; Thu, 26 May 2016 18:58:18 +0200 (CEST) Received: (qmail 92090 invoked by uid 500); 26 May 2016 16:58:13 -0000 Mailing-List: contact issues-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 issues@ambari.apache.org Received: (qmail 92028 invoked by uid 99); 26 May 2016 16:58:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 May 2016 16:58:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E2DA52C1F5C for ; Thu, 26 May 2016 16:58:12 +0000 (UTC) Date: Thu, 26 May 2016 16:58:12 +0000 (UTC) From: "Juanjo Marron (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-16849) clean up import * for YARN service MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 26 May 2016 16:58:19 -0000 [ https://issues.apache.org/jira/browse/AMBARI-16849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Juanjo Marron updated AMBARI-16849: ----------------------------------- Status: Patch Available (was: Open) > clean up import * for YARN service > ---------------------------------- > > Key: AMBARI-16849 > URL: https://issues.apache.org/jira/browse/AMBARI-16849 > Project: Ambari > Issue Type: Technical task > Components: ambari-agent, ambari-server > Affects Versions: 2.1.0, 2.4.0, 2.2.2 > Reporter: Juanjo Marron > Assignee: Juanjo Marron > Fix For: 3.0.0 > > Attachments: AMBARI-16849.patch > > > Python code at at common-services level used generic imports form resource_management (from resource_management import *) > Ideally, for easier code tracking and performance, these import should be more specific, such as: > from resource_management.libraries.script.script import Script > from resource_management.core.resources.system import Directory > This subtask cleans up import * from resource_management and replace it for specific imports for YARN service -- This message was sent by Atlassian JIRA (v6.3.4#6332)