@@ -303,20 +303,24 @@ def __run_rcu(self):
303
303
304
304
def __fail_mt_1221_domain_creation (self ):
305
305
"""
306
- Abort create if domain contains MT artifacts that cannot be created in the version of WLST offline being used.
306
+ Abort create if domain contains MT artifacts that cannot be created in the version of WLST offline being used
307
+ or if the version of WebLogic no longer supports MT.
307
308
:raises: CreateException: if the MT domain cannot be provision on the specified version of WLST offline
308
309
"""
309
310
_method_name = '__fail_mt_1221_domain_creation'
310
311
311
- if self .wls_helper .is_mt_offline_provisioning_supported ():
312
+ if self .wls_helper .is_mt_offline_provisioning_supported () and self . wls_helper . is_mt_provisioning_supported () :
312
313
return
313
314
314
315
resources_dict = self .model .get_model_resources ()
315
316
if (not dictionary_utils .is_empty_dictionary_element (self ._topology , VIRTUAL_TARGET )) or \
316
317
(not dictionary_utils .is_empty_dictionary_element (resources_dict , RESOURCE_GROUP_TEMPLATE )) or \
317
318
(not dictionary_utils .is_empty_dictionary_element (resources_dict , RESOURCE_GROUP )) or \
318
319
(not dictionary_utils .is_empty_dictionary_element (resources_dict , PARTITION )):
319
- ex = exception_helper .create_create_exception ('WLSDPLY-12202' , self .wls_helper .wl_version )
320
+ if not self .wls_helper .is_mt_provisioning_supported ():
321
+ ex = exception_helper .create_create_exception ('WLSDPLY-12254' , self .wls_helper .wl_version )
322
+ else :
323
+ ex = exception_helper .create_create_exception ('WLSDPLY-12202' , self .wls_helper .wl_version )
320
324
self .logger .throwing (ex , class_name = self .__class_name , method_name = _method_name )
321
325
raise ex
322
326
return
0 commit comments