Skip to content

Commit 3153cea

Browse files
ddsharperakillen
authored andcommitted
Correct method name for convert-path usage (#340)
* Correct method name convert-path, fixes #338 * Removed extra call to convert-path * Added logging message back
1 parent ad1abe3 commit 3153cea

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

core/src/main/python/wlsdeploy/tool/discover/topology_discoverer.py

+8-10
Original file line numberDiff line numberDiff line change
@@ -650,14 +650,13 @@ def _add_server_keystore_file_to_archive(self, server_name, archive_file, file_p
650650
_logger.finer('WLSDPLY-06623', file_path, server_name, class_name=_class_name, method_name=_method_name)
651651
new_name = None
652652

653-
full_file_path = self._convert_to_path(file_path)
654653
try:
655-
new_name = archive_file.addServerKeyStoreFile(server_name, File(full_file_path))
654+
new_name = archive_file.addServerKeyStoreFile(server_name, File(file_path))
656655
except IllegalArgumentException, iae:
657-
_logger.warning('WLSDPLY-06624', server_name, full_file_path, iae.getLocalizedMessage(),
656+
_logger.warning('WLSDPLY-06624', server_name, file_path, iae.getLocalizedMessage(),
658657
class_name=_class_name, method_name=_method_name)
659658
except WLSDeployArchiveIOException, wioe:
660-
de = exception_helper.create_discover_exception('WLSDPLY-06625', server_name, full_file_path,
659+
de = exception_helper.create_discover_exception('WLSDPLY-06625', server_name, file_path,
661660
wioe.getLocalizedMessage())
662661
_logger.throwing(class_name=_class_name, method_name=_method_name, error=de)
663662
raise de
@@ -672,17 +671,16 @@ def _add_node_manager_keystore_file_to_archive(self, archive_file, file_path):
672671
"""
673672
_method_name = '_add_node_manager_keystore_file_to_archive'
674673
_logger.entering(archive_file, file_path, class_name=_class_name, method_name=_method_name)
675-
full_file_path = self._convert_to_path(file_path)
676-
_logger.finer('WLSDPLY-06636', full_file_path, class_name=_class_name, method_name=_method_name)
677-
674+
_logger.finer('WLSDPLY-06636', file_path, class_name=_class_name, method_name=_method_name)
678675
new_name = None
676+
679677
try:
680-
new_name = archive_file.addNodeManagerKeyStoreFile(File(full_file_path))
678+
new_name = archive_file.addNodeManagerKeyStoreFile(File(file_path))
681679
except IllegalArgumentException, iae:
682-
_logger.warning('WLSDPLY-06637', full_file_path, iae.getLocalizedMessage(), class_name=_class_name,
680+
_logger.warning('WLSDPLY-06637', file_path, iae.getLocalizedMessage(), class_name=_class_name,
683681
method_name=_method_name)
684682
except WLSDeployArchiveIOException, wioe:
685-
de = exception_helper.create_discover_exception('WLSDPLY-06638', full_file_path, wioe.getLocalizedMessage())
683+
de = exception_helper.create_discover_exception('WLSDPLY-06638', file_path, wioe.getLocalizedMessage())
686684
_logger.throwing(class_name=_class_name, method_name=_method_name, error=de)
687685
raise de
688686
return new_name

0 commit comments

Comments
 (0)