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 A83DE18A7D for ; Mon, 14 Dec 2015 17:35:48 +0000 (UTC) Received: (qmail 92147 invoked by uid 500); 14 Dec 2015 17:35:48 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 92112 invoked by uid 500); 14 Dec 2015 17:35:48 -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 92100 invoked by uid 99); 14 Dec 2015 17:35:48 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Dec 2015 17:35:48 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A0C7A2C14F6 for ; Mon, 14 Dec 2015 17:35:46 +0000 (UTC) Date: Mon, 14 Dec 2015 17:35:46 +0000 (UTC) From: "Dmitry Lysnichenko (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-14373) If a bunch of RMF resources is defined using list of names, list is modified in runtime MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-14373?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dmitry Lysnichenko updated AMBARI-14373: ---------------------------------------- Component/s: ambari-server > If a bunch of RMF resources is defined using list of names, list is modified in runtime > --------------------------------------------------------------------------------------- > > Key: AMBARI-14373 > URL: https://issues.apache.org/jira/browse/AMBARI-14373 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Reporter: Dmitry Lysnichenko > Assignee: Dmitry Lysnichenko > > Given code like > {code} > base_dirs = [params.kafka_log_dir, params.kafka_pid_dir, params.conf_dir] > Directory(base_dirs, > mode=0755, > cd_access='a', > owner=params.kafka_user, > group=params.user_group, > recursive=True > ) > set_dir_ownership(base_dirs) > {code} > base_dirs becomes empty after using it in Directory definition (there is a side effect here) -- This message was sent by Atlassian JIRA (v6.3.4#6332)