|
1 | 1 | """
|
2 |
| -Copyright (c) 2017, 2020, Oracle Corporation and/or its affiliates. All rights reserved. |
| 2 | +Copyright (c) 2017, 2022, Oracle Corporation and/or its affiliates. |
3 | 3 | Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
|
4 | 4 | """
|
5 | 5 |
|
|
12 | 12 | from wlsdeploy.tool.create.creator import Creator
|
13 | 13 | from wlsdeploy.tool.deploy import deployer_utils
|
14 | 14 | from wlsdeploy.util import dictionary_utils
|
| 15 | +from wlsdeploy.util.weblogic_helper import WebLogicHelper |
15 | 16 |
|
16 | 17 |
|
17 | 18 | class SecurityProviderCreator(Creator):
|
@@ -52,6 +53,7 @@ def __init__(self, model_dictionary, model_context, aliases, exception_type, log
|
52 | 53 |
|
53 | 54 | self._topology = self.model.get_model_topology()
|
54 | 55 | self._domain_typedef = self.model_context.get_domain_typedef()
|
| 56 | + self._wls_helper = WebLogicHelper(self.logger) |
55 | 57 |
|
56 | 58 | return
|
57 | 59 |
|
@@ -276,6 +278,12 @@ def _check_provider_type(self, type_name, model_nodes):
|
276 | 278 | :return: True if the provider type should be updated, False if it should be skipped
|
277 | 279 | """
|
278 | 280 | _method_name = '_check_provider_type'
|
| 281 | + # there are problems re-configuring adjudicators, don't update them |
| 282 | + if type_name == self.__adjudicator_type and not self.is_adjudicator_changeable(): |
| 283 | + if not self._is_default_adjudicator_configuration(model_nodes): |
| 284 | + self.logger.warning('WLSDPLY-12137', class_name=self.__class_name, method_name=_method_name) |
| 285 | + |
| 286 | + return False |
279 | 287 |
|
280 | 288 | return True
|
281 | 289 |
|
@@ -313,3 +321,6 @@ def _is_default_adjudicator_configuration(self, model_nodes):
|
313 | 321 | return False
|
314 | 322 |
|
315 | 323 | return True
|
| 324 | + |
| 325 | + def is_adjudicator_changeable(self): |
| 326 | + return self._wls_helper.is_weblogic_version_or_above('12.2.1.4') |
0 commit comments