@@ -290,36 +290,3 @@ def _create_placeholder_jms_template(self, template_name, resource_location):
290290
291291 self .wlst_helper .cd (original_location )
292292 return result
293-
294- def _check_destination_quota (self , destination_nodes , location ):
295- """
296- Check the destination nodes for a quota element, and create a placeholder quota if required.
297- :param destination_nodes: the destination nodes to be examined
298- :param location: the location of the destination parent
299- """
300- for name in destination_nodes :
301- child_nodes = dictionary_utils .get_dictionary_element (destination_nodes , name )
302- quota_name = dictionary_utils .get_element (child_nodes , QUOTA )
303- if quota_name is not None :
304- self ._create_placeholder_jms_quota (quota_name , location )
305- return
306-
307- def _create_placeholder_jms_quota (self , quota_name , resource_location ):
308- """
309- :param template_name: the name of the template to be added
310- :param resource_location: the location where the template should be added
311- """
312- _method_name = '_create_placeholder_jms_quota'
313- original_location = self .wlst_helper .get_pwd ()
314- quota_location = LocationContext (resource_location ).append_location (QUOTA )
315- existing_names = deployer_utils .get_existing_object_list (quota_location , self .alias_helper )
316-
317- if quota_name not in existing_names :
318- self .logger .info ('WLSDPLY-09502' , quota_name , class_name = self ._class_name , method_name = _method_name )
319-
320- quota_token = self .alias_helper .get_name_token (quota_location )
321- quota_location .add_name_token (quota_token , quota_name )
322- result = deployer_utils .create_and_cd (quota_location , existing_names , self .alias_helper )
323-
324- self .wlst_helper .cd (original_location )
325- return result
0 commit comments