From c83506f27618f4e177d94687fb29ea683388a440 Mon Sep 17 00:00:00 2001 From: Jonathan Coustick Date: Mon, 17 Sep 2018 17:42:22 +0100 Subject: [PATCH] PAYARA-3098 delete-domain will now not run if domain is running --- .../enterprise/admin/servermgmt/cli/LocalServerCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nucleus/admin/server-mgmt/src/main/java/com/sun/enterprise/admin/servermgmt/cli/LocalServerCommand.java b/nucleus/admin/server-mgmt/src/main/java/com/sun/enterprise/admin/servermgmt/cli/LocalServerCommand.java index 60bf6038116..0330d0b1fe7 100644 --- a/nucleus/admin/server-mgmt/src/main/java/com/sun/enterprise/admin/servermgmt/cli/LocalServerCommand.java +++ b/nucleus/admin/server-mgmt/src/main/java/com/sun/enterprise/admin/servermgmt/cli/LocalServerCommand.java @@ -38,7 +38,7 @@ * holder. */ -// Portions Copyright [2016] [Payara Foundation] +// Portions Copyright [2016-2018] [Payara Foundation] and/or affiliates package com.sun.enterprise.admin.servermgmt.cli; @@ -280,6 +280,7 @@ protected final boolean isThisServer(File ourDir, String directoryKey) { logger.log(Level.FINER, "Check if server is at location {0}", ourDir); try { + programOpts.setHostAndPort(getAdminAddress()); RemoteCLICommand cmd = new RemoteCLICommand("__locations", programOpts, env); ActionReport report =