Skip to content

Commit f794778

Browse files
allow relative path in appdeploy and update onine (#976)
1 parent b20735f commit f794778

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

core/src/main/python/wlsdeploy/tool/deploy/applications_deployer.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -800,9 +800,13 @@ def __get_hash(self, path):
800800
else:
801801
hash_value = self.archive_helper.get_file_hash(path)
802802
else:
803-
ex = exception_helper.create_deploy_exception('WLSDPLY-09310', path)
804-
self.logger.throwing(ex, class_name=self._class_name, method_name=_method_name)
805-
raise ex
803+
path = self.model_context.get_domain_home() + '/' + path
804+
if os.path.isabs(path):
805+
hash_value = self.__get_file_hash(path)
806+
else:
807+
ex = exception_helper.create_deploy_exception('WLSDPLY-09310', path)
808+
self.logger.throwing(ex, class_name=self._class_name, method_name=_method_name)
809+
raise ex
806810
return hash_value
807811

808812
def __get_config_targets(self):

0 commit comments

Comments
 (0)