Skip to content

Commit

Permalink
Merge pull request #3171 from Cousjava/PAYARA-3098-delete-running-domain
Browse files Browse the repository at this point in the history
PAYARA-3098 delete-domain will now not run if domain is running
  • Loading branch information
Cousjava authored Sep 27, 2018
2 parents 6df1a55 + 6421f36 commit 27d2a29
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,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 = cmd.executeAndReturnActionReport("__locations");
String theirDirPath = report.findProperty(directoryKey);
Expand Down

0 comments on commit 27d2a29

Please sign in to comment.