@@ -702,11 +702,11 @@ def __deploy_model_applications(self, model_apps, app_location, deployed_applist
702
702
resource_group_template_name , resource_group_name , partition_name = \
703
703
self .__get_mt_names_from_location (location )
704
704
705
- self .__deploy_app_online (app_name , src_path , targets , plan = plan_file ,
705
+ new_app_name = self .__deploy_app_online (app_name , src_path , targets , plan = plan_file ,
706
706
partition = partition_name , resource_group = resource_group_name ,
707
707
resource_group_template = resource_group_template_name , options = options )
708
708
location .remove_name_token (token_name )
709
- deployed_applist .append (app_name )
709
+ deployed_applist .append (new_app_name )
710
710
return
711
711
712
712
def __get_mt_names_from_location (self , app_location ):
@@ -778,7 +778,7 @@ def __deploy_app_online(self, application_name, source_path, targets, plan=None,
778
778
self .logger .fine ('WLSDPLY-09320' , application_name , kwargs ,
779
779
class_name = self ._class_name , method_name = _method_name )
780
780
self .wlst_helper .deploy_application (application_name , * args , ** kwargs )
781
- return
781
+ return application_name
782
782
783
783
def __extract_file_from_archive (self , path ):
784
784
if path is not None and deployer_utils .is_path_into_archive (path ):
@@ -812,6 +812,13 @@ def __get_deployable_library_versioned_name(self, source_path, model_name):
812
812
manifest = bao .toString ('UTF-8' )
813
813
tokens = manifest .split ()
814
814
815
+ # this is specific to application not shared library, so just returns it
816
+
817
+ if 'Weblogic-Application-Version:' in tokens :
818
+ weblogic_appname_index = tokens .index ('Weblogic-Application-Version:' )
819
+ versioned_name = old_name_tuple [self ._EXTENSION_INDEX ] + '#' + tokens [weblogic_appname_index + 1 ]
820
+ return versioned_name
821
+
815
822
if 'Extension-Name:' in tokens :
816
823
extension_index = tokens .index ('Extension-Name:' )
817
824
if len (tokens ) > extension_index :
@@ -842,6 +849,9 @@ def __get_deployable_library_versioned_name(self, source_path, model_name):
842
849
ex = exception_helper .create_deploy_exception ('WLSDPLY-09323' , model_name , source_path , tokens )
843
850
self .logger .throwing (ex , class_name = self ._class_name , method_name = _method_name )
844
851
raise ex
852
+
853
+
854
+
845
855
self .logger .info ('WLSDPLY-09324' , model_name , versioned_name ,
846
856
class_name = self ._class_name , method_name = _method_name )
847
857
except (IOException , FileNotFoundException , ZipException , IllegalStateException ), e :
0 commit comments