@@ -209,13 +209,13 @@ def _process_node(nodes, variables, model_context):
209209 for member in value :
210210 if type (member ) in [str , unicode ]:
211211 index = value .index (member )
212- value [index ] = _substitute (member , variables , model_context )
212+ value [index ] = _substitute (member , variables , model_context , key )
213213
214214 elif type (value ) in [str , unicode ]:
215- nodes [key ] = _substitute (value , variables , model_context )
215+ nodes [key ] = _substitute (value , variables , model_context , key )
216216
217217
218- def _substitute (text , variables , model_context ):
218+ def _substitute (text , variables , model_context , attribute_name = None ):
219219 """
220220 Substitute token placeholders with their derived values.
221221 :param text: the text to process for token placeholders
@@ -287,7 +287,11 @@ def _substitute(text, variables, model_context):
287287 if token == "SECRET" :
288288 sample += ":<key>"
289289 sample += "@@"
290- _report_token_issue ("WLSDPLY-01745" , method_name , model_context , token , sample )
290+
291+ if attribute_name is None :
292+ _report_token_issue ("WLSDPLY-01745" , method_name , model_context , text , sample )
293+ else :
294+ _report_token_issue ("WLSDPLY-01746" , method_name , model_context , attribute_name , text , sample )
291295
292296 return text
293297
0 commit comments