@@ -72,16 +72,18 @@ def create_placeholder_server_templates(self, topology):
72
72
_method_name = 'create_placeholder_server_templates'
73
73
original_location = self .wlst_helper .get_pwd ()
74
74
template_location = LocationContext ().append_location (SERVER_TEMPLATE )
75
- existing_names = deployer_utils .get_existing_object_list (template_location , self .alias_helper )
76
75
77
- template_nodes = dictionary_utils .get_dictionary_element (topology , SERVER_TEMPLATE )
78
- for template_name in template_nodes :
79
- if template_name not in existing_names :
80
- self .logger .info ('WLSDPLY-19400' , template_name , class_name = self .__class_name ,
81
- method_name = _method_name )
76
+ if self .alias_helper .get_wlst_mbean_type (template_location ) is not None :
77
+ existing_names = deployer_utils .get_existing_object_list (template_location , self .alias_helper )
82
78
83
- template_token = self .alias_helper .get_name_token (template_location )
84
- template_location .add_name_token (template_token , template_name )
85
- deployer_utils .create_and_cd (template_location , existing_names , self .alias_helper )
79
+ template_nodes = dictionary_utils .get_dictionary_element (topology , SERVER_TEMPLATE )
80
+ for template_name in template_nodes :
81
+ if template_name not in existing_names :
82
+ self .logger .info ('WLSDPLY-19400' , template_name , class_name = self .__class_name ,
83
+ method_name = _method_name )
84
+
85
+ template_token = self .alias_helper .get_name_token (template_location )
86
+ template_location .add_name_token (template_token , template_name )
87
+ deployer_utils .create_and_cd (template_location , existing_names , self .alias_helper )
86
88
87
89
self .wlst_helper .cd (original_location )
0 commit comments