Skip to content

Commit 2276e95

Browse files
authored
Issue #631 - Only extract /wlsdeploy paths from the archive (#634)
1 parent fffdb96 commit 2276e95

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -838,10 +838,13 @@ def __deploy_model_applications(self, model_apps, app_location, deployed_applist
838838
plan_file = dictionary_utils.get_element(app_dict, PLAN_PATH)
839839
targets = dictionary_utils.get_element(app_dict, TARGET)
840840
options = _get_deploy_options(model_apps, app_name, library_module='false')
841+
842+
# any attribute with 'uses_path_tokens' may be in the archive (such as SourcePath)
841843
for uses_path_tokens_attribute_name in uses_path_tokens_attribute_names:
842844
if uses_path_tokens_attribute_name in app_dict:
843-
self.__extract_source_path_from_archive(app_dict[uses_path_tokens_attribute_name],
844-
APPLICATION, app_name)
845+
path = app_dict[uses_path_tokens_attribute_name]
846+
if deployer_utils.is_path_into_archive(path):
847+
self.__extract_source_path_from_archive(path, APPLICATION, app_name)
845848

846849
location.add_name_token(token_name, app_name)
847850
resource_group_template_name, resource_group_name, partition_name = \

0 commit comments

Comments
 (0)