Skip to content

Commit 11ad52c

Browse files
authored
Merge pull request #315 from oracle/fixnoarhivew
Fixnoarhivew
2 parents 7fce78a + 8db9167 commit 11ad52c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

core/src/main/python/create.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,8 +434,9 @@ 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:
438-
archive_file = WLSDeployArchive(model_context.get_archive_file_name())
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):
439+
archive_file = WLSDeployArchive(archive_file_name)
439440
if archive_file:
440441
atp_wallet_zipentry = archive_file.getATPWallet()
441442
if atp_wallet_zipentry:
@@ -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)