summaryrefslogtreecommitdiffstats
path: root/base/java-tools/src/com/netscape/cmstools
diff options
context:
space:
mode:
Diffstat (limited to 'base/java-tools/src/com/netscape/cmstools')
-rw-r--r--base/java-tools/src/com/netscape/cmstools/cli/ProxyCLI.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/java-tools/src/com/netscape/cmstools/cli/ProxyCLI.java b/base/java-tools/src/com/netscape/cmstools/cli/ProxyCLI.java
index 60d4593d4..ad3fdb8b6 100644
--- a/base/java-tools/src/com/netscape/cmstools/cli/ProxyCLI.java
+++ b/base/java-tools/src/com/netscape/cmstools/cli/ProxyCLI.java
@@ -101,17 +101,17 @@ public class ProxyCLI extends CLI {
public void execute(String[] args) throws Exception {
- PKIClient client = module.getParent().getClient();
AccountClient accountClient = null;
try {
// login if username or nickname is specified
- ClientConfig config = client.getConfig();
+ ClientConfig config = module.getConfig();
if (config.getUsername() != null || config.getCertNickname() != null) {
String subsystem = config.getSubsystem();
if (subsystem == null) subsystem = defaultSubsystem;
+ PKIClient client = module.getClient();
accountClient = new AccountClient(client, subsystem);
accountClient.login();
}