@@ -303,20 +303,24 @@ def __run_rcu(self):
303303
304304 def __fail_mt_1221_domain_creation (self ):
305305 """
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.
307308 :raises: CreateException: if the MT domain cannot be provision on the specified version of WLST offline
308309 """
309310 _method_name = '__fail_mt_1221_domain_creation'
310311
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 () :
312313 return
313314
314315 resources_dict = self .model .get_model_resources ()
315316 if (not dictionary_utils .is_empty_dictionary_element (self ._topology , VIRTUAL_TARGET )) or \
316317 (not dictionary_utils .is_empty_dictionary_element (resources_dict , RESOURCE_GROUP_TEMPLATE )) or \
317318 (not dictionary_utils .is_empty_dictionary_element (resources_dict , RESOURCE_GROUP )) or \
318319 (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 )
320324 self .logger .throwing (ex , class_name = self .__class_name , method_name = _method_name )
321325 raise ex
322326 return
0 commit comments