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 A1572200C00 for ; Wed, 18 Jan 2017 13:16:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 9FE60160B59; Wed, 18 Jan 2017 12:16:04 +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 1B390160B44 for ; Wed, 18 Jan 2017 13:16:03 +0100 (CET) Received: (qmail 10155 invoked by uid 500); 18 Jan 2017 12:16:03 -0000 Mailing-List: contact commits-help@brooklyn.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.apache.org Delivered-To: mailing list commits@brooklyn.apache.org Received: (qmail 10117 invoked by uid 99); 18 Jan 2017 12:16:03 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jan 2017 12:16:03 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 1699CDFCF2; Wed, 18 Jan 2017 12:16:03 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: svet@apache.org To: commits@brooklyn.apache.org Date: Wed, 18 Jan 2017 12:16:06 -0000 Message-Id: <664a23d41c20400a94458e04e8f9f753@git.apache.org> In-Reply-To: <4e8a7a4de392485383030138538ea1a5@git.apache.org> References: <4e8a7a4de392485383030138538ea1a5@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [4/4] brooklyn-server git commit: Closes #523 archived-at: Wed, 18 Jan 2017 12:16:04 -0000 Closes #523 Fix Azure ARM VM names Azure ARM only allows alphanumeric characters in it's naming. The default for Brooklyn is to use `-` characters to split up blocks of alphanumeric chars which breaks this. This adds an exception for `azurecompute-arm` in the same style as VM name length. Tested with Tomcat 7 on Azure ARM, AWS and OpenStack Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/494ae6fe Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/494ae6fe Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/494ae6fe Branch: refs/heads/master Commit: 494ae6fe10f44cc0082cbf950aa1331c2a5c75fb Parents: db7418c 6c1de1b Author: Svetoslav Neykov Authored: Wed Jan 18 14:15:42 2017 +0200 Committer: Svetoslav Neykov Committed: Wed Jan 18 14:15:42 2017 +0200 ---------------------------------------------------------------------- .../location/cloud/CloudLocationConfig.java | 4 +++ .../cloud/names/BasicCloudMachineNamer.java | 9 ++++--- .../location/jclouds/JcloudsMachineNamer.java | 15 +++++++++++ .../brooklyn/util/text/StringShortener.java | 28 ++++++++++++++++---- .../brooklyn/util/text/StringShortenerTest.java | 20 ++++++++++++++ 5 files changed, 68 insertions(+), 8 deletions(-) ----------------------------------------------------------------------