@@ -114,9 +114,11 @@ def get_coherence_cache_config(self, coherence_cluster_name, location):
114
114
cache_configs = self ._find_names_in_folder (location )
115
115
if cache_configs is not None :
116
116
name_token = self ._aliases .get_name_token (location )
117
+ attr_names = self ._aliases .get_model_attribute_names (location )
117
118
for cache_config in cache_configs :
118
119
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 :
120
122
_logger .warning ('WLSDPLY-06323' , cache_config , coherence_cluster_name ,
121
123
class_name = _class_name , method_name = _method_name )
122
124
continue
@@ -125,14 +127,14 @@ def get_coherence_cache_config(self, coherence_cluster_name, location):
125
127
class_name = _class_name , method_name = _method_name )
126
128
result [cache_config ] = OrderedDict ()
127
129
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 ])
129
131
self ._discover_subfolders (result [cache_config ], location )
130
132
location .remove_name_token (name_token )
131
133
location .pop_location ()
132
134
_logger .exiting (class_name = _class_name , method_name = _method_name , result = result )
133
135
return model_top_folder_name , result
134
136
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 ):
136
138
"""
137
139
Coherence Cache Config objects contain two attributes related to the cache config file:
138
140
CacheConfigurationFile and RuntimeCacheConfigurationUri. The RuntimeCacheConfigurationUri
@@ -144,7 +146,7 @@ def _workaround_offline_cache_config_issue(self, cluster_name, cache_config_name
144
146
:param cache_config_dict: the cache_config dictionary object containing the discovered value
145
147
:param cache_config_name: the name of this cache_config object.
146
148
"""
147
- _method_name = '_workaround_offline_cache_config_issue '
149
+ _method_name = '_workaround_cache_config_issue '
148
150
_logger .entering (cluster_name , cache_config_name , cache_config_dict ,
149
151
class_name = _class_name , method_name = _method_name )
150
152
0 commit comments