Return-Path: X-Original-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4C33D10F11 for ; Fri, 30 Aug 2013 21:00:53 +0000 (UTC) Received: (qmail 14316 invoked by uid 500); 30 Aug 2013 21:00:52 -0000 Delivered-To: apmail-incubator-ambari-dev-archive@incubator.apache.org Received: (qmail 14244 invoked by uid 500); 30 Aug 2013 21:00:52 -0000 Mailing-List: contact ambari-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@incubator.apache.org Delivered-To: mailing list ambari-dev@incubator.apache.org Received: (qmail 14235 invoked by uid 99); 30 Aug 2013 21:00:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Aug 2013 21:00:52 +0000 Date: Fri, 30 Aug 2013 21:00:52 +0000 (UTC) From: "Dmitry Sen (JIRA)" To: ambari-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AMBARI-3061) Do not use regex to determine folder name by full path for dfs_domain_socket_path MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Dmitry Sen created AMBARI-3061: ---------------------------------- Summary: Do not use regex to determine folder name by full path for dfs_domain_socket_path Key: AMBARI-3061 URL: https://issues.apache.org/jira/browse/AMBARI-3061 Project: Ambari Issue Type: Bug Components: agent Affects Versions: 1.4.1 Reporter: Dmitry Sen Assignee: Dmitry Sen Fix For: 1.4.1 Attachments: AMBARI-3061.patch The point is to use custom puppet function instead of regex for line {code} $dfs_domain_socket_path_dir = regsubst($hdp-hadoop::params::dfs_domain_socket_path, '/[^\/]+$', '') {code}. It could be implemented with ruby: {code} File.split('/path/to/file') # => ["/path/to", "file"] {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira