Skip to content

Commit 3e2b617

Browse files
add missing messages for online arguments and add a message about online support
1 parent 20012e3 commit 3e2b617

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

core/src/main/python/discover.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,25 +117,25 @@ def __process_online_args(optional_arg_map):
117117
if CommandLineArgUtil.ADMIN_URL_SWITCH in optional_arg_map:
118118
if CommandLineArgUtil.ADMIN_USER_SWITCH not in optional_arg_map:
119119
try:
120-
username = getcreds.getuser('WLSDPLY-09044')
120+
username = getcreds.getuser('WLSDPLY-06016')
121121
except IOException, ioe:
122-
ex = exception_helper.create_cla_exception('WLSDPLY-09046', ioe.getLocalizedMessage(), error=ioe)
122+
ex = exception_helper.create_cla_exception('WLSDPLY-06017', ioe.getLocalizedMessage(), error=ioe)
123123
ex.setExitCode(CommandLineArgUtil.ARG_VALIDATION_ERROR_EXIT_CODE)
124124
__logger.throwing(ex, class_name=_class_name, method_name=_method_name)
125125
raise ex
126126
optional_arg_map[CommandLineArgUtil.ADMIN_USER_SWITCH] = username
127127

128128
if CommandLineArgUtil.ADMIN_PASS_SWITCH not in optional_arg_map:
129129
try:
130-
password = getcreds.getpass('WLSDPLY-09045')
130+
password = getcreds.getpass('WLSDPLY-06018')
131131
except IOException, ioe:
132-
ex = exception_helper.create_cla_exception('WLSDPLY-09047', ioe.getLocalizedMessage(), error=ioe)
132+
ex = exception_helper.create_cla_exception('WLSDPLY-06019', ioe.getLocalizedMessage(), error=ioe)
133133
ex.setExitCode(CommandLineArgUtil.ARG_VALIDATION_ERROR_EXIT_CODE)
134134
__logger.throwing(ex, class_name=_class_name, method_name=_method_name)
135135
raise ex
136136
optional_arg_map[CommandLineArgUtil.ADMIN_PASS_SWITCH] = String(password)
137137

138-
mode = WlstModes.ONLINE
138+
__logger.info('WLSDPLY-06020')
139139
return mode
140140

141141

core/src/main/resources/oracle/weblogic/deploy/messages/wlsdeploy_rb.properties

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,12 @@ WLSDPLY-06012={0} failed to persist the model to the archive file {1}: {2}
412412
WLSDPLY-06013={0} failed to create the archive file at {1}: {2}
413413
WLSDPLY-06014=Filters applied to the model
414414
WLSDPLY-06015=Unable to run validation against the discovered model : {0}
415-
415+
WLSDPLY-06016=Please enter the WebLogic administrator username
416+
WLSDPLY-06017=Failed to read the WebLogic administrator username input from the user: {0}
417+
WLSDPLY-06018=Please enter the WebLogic administrator password
418+
WLSDPLY-06019=Failed to read the WebLogic administrator password input from the user: {0}
419+
WLSDPLY-06020=Discover of domain is not currently supported in online mode. Ignoring Admin credential arguments which \
420+
are present for FUTURE TBD release.
416421

417422
# discoverer.py
418423
WLSDPLY-06100=Find attributes at location {0}

0 commit comments

Comments
 (0)