Skip to content

Commit c5606a2

Browse files
committed
add check for bad archive name
1 parent 7fce78a commit c5606a2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

core/src/main/python/create.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,8 @@ def main(args):
434434
has_atp = validateRCUArgsAndModel(model_context, model)
435435
# check if there is an atpwallet and extract in the domain dir
436436
# it is to support non JRF domain but user wants to use ATP database
437-
if not has_atp:
437+
archive_file_name = model_context.get_archive_file_name()
438+
if not has_atp and archive_file_name and os.path.exists(archive_file_name):
438439
archive_file = WLSDeployArchive(model_context.get_archive_file_name())
439440
if archive_file:
440441
atp_wallet_zipentry = archive_file.getATPWallet()
@@ -446,6 +447,12 @@ def main(args):
446447

447448
if has_atp:
448449
atp_helper.fix_jps_config(model, model_context)
450+
except WLSDeployArchiveIOException, ex:
451+
__logger.severe('WLSDPLY-12409', _program_name, ex.getLocalizedMessage(), error=ex,
452+
class_name=_class_name, method_name=_method_name)
453+
__clean_up_temp_files()
454+
tool_exit.end(model_context, CommandLineArgUtil.PROG_ERROR_EXIT_CODE)
455+
449456
except CreateException, ex:
450457
__logger.severe('WLSDPLY-12409', _program_name, ex.getLocalizedMessage(), error=ex,
451458
class_name=_class_name, method_name=_method_name)

0 commit comments

Comments
 (0)