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 BFEA7200AC0 for ; Tue, 24 May 2016 14:08:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BE9EB160A2F; Tue, 24 May 2016 12:08:07 +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 2882C160A01 for ; Tue, 24 May 2016 14:08:07 +0200 (CEST) Received: (qmail 8837 invoked by uid 500); 24 May 2016 12:08:06 -0000 Mailing-List: contact dev-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 dev@brooklyn.apache.org Received: (qmail 8826 invoked by uid 99); 24 May 2016 12:08:06 -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; Tue, 24 May 2016 12:08:06 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C3AB2DFB14; Tue, 24 May 2016 12:08:05 +0000 (UTC) From: aledsage To: dev@brooklyn.apache.org Reply-To: dev@brooklyn.apache.org References: In-Reply-To: Subject: [GitHub] brooklyn-server pull request: Ability to suppress install command ... Content-Type: text/plain Message-Id: <20160524120805.C3AB2DFB14@git1-us-west.apache.org> Date: Tue, 24 May 2016 12:08:05 +0000 (UTC) archived-at: Tue, 24 May 2016 12:08:07 -0000 Github user aledsage commented on a diff in the pull request: https://github.com/apache/brooklyn-server/pull/150#discussion_r64378738 --- Diff: software/base/src/main/java/org/apache/brooklyn/entity/software/base/AbstractSoftwareProcessWinRmDriver.java --- @@ -161,12 +161,16 @@ public WinRmMachineLocation getMachine() { } protected int executeCommandInTask(String command, String psCommand, String phase) { + return executeCommandInTask(command, psCommand, phase, false); + } + + protected int executeCommandInTask(String command, String psCommand, String phase, boolean suppressFailures) { return newScript(phase) .setCommand(command) .setPsCommand(psCommand) .failOnNonZeroResultCode() .gatherOutput() - .execute(); + .execute(suppressFailures); --- End diff -- Why is `suppressFailures` special (i.e. passing it as a parameter to `execute()`, rather than calling `.suppressFailures(suppressFailures)` to configure the script before calling a no-arg `execute()`? --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---