@@ -114,9 +114,11 @@ def get_coherence_cache_config(self, coherence_cluster_name, location):
114114 cache_configs = self ._find_names_in_folder (location )
115115 if cache_configs is not None :
116116 name_token = self ._aliases .get_name_token (location )
117+ attr_names = self ._aliases .get_model_attribute_names (location )
117118 for cache_config in cache_configs :
118119 location .add_name_token (name_token , cache_config )
119- if self ._wlst_mode == WlstModes .ONLINE :
120+
121+ if self ._wlst_mode == WlstModes .ONLINE and COHERENCE_RUNTIME_CACHE_CONFIG_URI not in attr_names :
120122 _logger .warning ('WLSDPLY-06323' , cache_config , coherence_cluster_name ,
121123 class_name = _class_name , method_name = _method_name )
122124 continue
@@ -125,14 +127,14 @@ def get_coherence_cache_config(self, coherence_cluster_name, location):
125127 class_name = _class_name , method_name = _method_name )
126128 result [cache_config ] = OrderedDict ()
127129 self ._populate_model_parameters (result [cache_config ], location )
128- self ._workaround_offline_cache_config_issue (coherence_cluster_name , cache_config , result [cache_config ])
130+ self ._workaround_cache_config_issue (coherence_cluster_name , cache_config , result [cache_config ])
129131 self ._discover_subfolders (result [cache_config ], location )
130132 location .remove_name_token (name_token )
131133 location .pop_location ()
132134 _logger .exiting (class_name = _class_name , method_name = _method_name , result = result )
133135 return model_top_folder_name , result
134136
135- def _workaround_offline_cache_config_issue (self , cluster_name , cache_config_name , cache_config_dict ):
137+ def _workaround_cache_config_issue (self , cluster_name , cache_config_name , cache_config_dict ):
136138 """
137139 Coherence Cache Config objects contain two attributes related to the cache config file:
138140 CacheConfigurationFile and RuntimeCacheConfigurationUri. The RuntimeCacheConfigurationUri
@@ -144,7 +146,7 @@ def _workaround_offline_cache_config_issue(self, cluster_name, cache_config_name
144146 :param cache_config_dict: the cache_config dictionary object containing the discovered value
145147 :param cache_config_name: the name of this cache_config object.
146148 """
147- _method_name = '_workaround_offline_cache_config_issue '
149+ _method_name = '_workaround_cache_config_issue '
148150 _logger .entering (cluster_name , cache_config_name , cache_config_dict ,
149151 class_name = _class_name , method_name = _method_name )
150152
0 commit comments