|
4 | 4 | """
|
5 | 5 |
|
6 | 6 | from oracle.weblogic.deploy.util import WLSDeployArchive
|
| 7 | +from oracle.weblogic.deploy.exception import BundleAwareException |
7 | 8 |
|
8 | 9 | from wlsdeploy.aliases.location_context import LocationContext
|
9 |
| -from wlsdeploy.aliases.model_constants import SECURITY_CONFIGURATION |
10 | 10 | from wlsdeploy.aliases.validation_codes import ValidationCodes
|
11 | 11 | from wlsdeploy.exception import exception_helper
|
12 | 12 | from wlsdeploy.exception.expection_types import ExceptionType
|
@@ -189,8 +189,6 @@ def _create_security_provider_mbeans(self, type_name, model_nodes, base_location
|
189 | 189 | existing_folder_names = self._get_existing_folders(list_path)
|
190 | 190 | known_providers = self.alias_helper.get_model_subfolder_names(location)
|
191 | 191 | allow_custom = str(self.alias_helper.is_custom_folder_allowed(location))
|
192 |
| - self.logger.finer('create path {0}, list_path {1}, existing folders {2}', create_path, list_path, |
193 |
| - str(existing_folder_names)) |
194 | 192 |
|
195 | 193 | for model_name in model_nodes:
|
196 | 194 | model_node = model_nodes[model_name]
|
@@ -491,9 +489,18 @@ def _delete_existing_providers(self, location):
|
491 | 489 | create_path = self.alias_helper.get_wlst_create_path(location)
|
492 | 490 | self.wlst_helper.cd(create_path)
|
493 | 491 | for existing_folder_name in existing_folder_names:
|
494 |
| - self.wlst_helper.delete(existing_folder_name, wlst_base_provider_type) |
495 |
| - self.logger.finer('Removed default provider {0} from provider {1} at location {2}', |
496 |
| - existing_folder_name, wlst_base_provider_type, create_path) |
| 492 | + try: |
| 493 | + self.wlst_helper.delete(existing_folder_name, wlst_base_provider_type) |
| 494 | + self.logger.finer('Removed default provider {0} from provider {1} at location {2}', |
| 495 | + existing_folder_name, wlst_base_provider_type, create_path) |
| 496 | + except BundleAwareException, bae: |
| 497 | + ex = exception_helper.create_exception(self._exception_type, 'WLSDPLY-12134', existing_folder_name, |
| 498 | + self.wls_helper.get_weblogic_version(), |
| 499 | + wlst_base_provider_type, bae.getLocalizedMessage(), |
| 500 | + error=bae) |
| 501 | + self.logger.throwing(ex, class_name=self.__class_name, method_name=_method_name) |
| 502 | + raise ex |
| 503 | + |
497 | 504 | self.logger.exiting(class_name=self.__class_name, method_name=_method_name)
|
498 | 505 | return
|
499 | 506 |
|
|
0 commit comments