Skip to content

Commit 8c382f3

Browse files
Fix discover exit message to display the correct wlst mode
1 parent eeab705 commit 8c382f3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

core/src/main/python/discover.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
2+
Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
33
The Universal Permissive License (UPL), Version 1.0
44
55
The entry point for the discoverDomain tool.
@@ -20,7 +20,6 @@
2020
from oracle.weblogic.deploy.util import TranslateException
2121
from oracle.weblogic.deploy.util import WLSDeployArchive
2222
from oracle.weblogic.deploy.util import WLSDeployArchiveIOException
23-
from oracle.weblogic.deploy.util import WLSDeployExit
2423
from oracle.weblogic.deploy.util import WebLogicDeployToolingVersion
2524
from oracle.weblogic.deploy.validate import ValidateException
2625

@@ -72,7 +71,8 @@
7271
CommandLineArgUtil.VARIABLE_PROPERTIES_FILE_SWITCH,
7372
CommandLineArgUtil.ADMIN_URL_SWITCH,
7473
CommandLineArgUtil.ADMIN_USER_SWITCH,
75-
CommandLineArgUtil.ADMIN_PASS_SWITCH
74+
CommandLineArgUtil.ADMIN_PASS_SWITCH,
75+
CommandLineArgUtil.TARGET_MODE_SWITCH
7676
]
7777

7878

@@ -153,6 +153,7 @@ def __process_online_args(optional_arg_map):
153153
optional_arg_map[CommandLineArgUtil.ADMIN_PASS_SWITCH] = String(password)
154154

155155
mode = WlstModes.ONLINE
156+
optional_arg_map[CommandLineArgUtil.TARGET_MODE_SWITCH] = 'online'
156157
return mode
157158

158159

0 commit comments

Comments
 (0)