Skip to content

Commit ba48fb5

Browse files
committed
add _X.template
1 parent 9095481 commit ba48fb5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/lib/ad_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,12 @@ def lifecycle(entity):
242242
before = entity['payload']['before']['lifecycle']
243243
after = entity['payload']['after']['lifecycle']
244244
template_name=before + "_" + after + ".template"
245-
test=os.getcwd()
245+
template_name1 = "_" + after + ".template"
246246
r=0
247247
if os.path.exists(__CUSTOM_TEMPLATES_PS1__ + "/" + template_name):
248248
r=ad_exec_script(entity, template_name)
249+
elif os.path.exists(__CUSTOM_TEMPLATES_PS1__ + "/" + template_name1):
250+
r=ad_exec_script(entity, template_name1)
249251
elif os.path.exists(__CUSTOM_TEMPLATES_PS1__ + "/" +"lifecycle.template"):
250252
r=ad_exec_script(entity, "lifecycle.template")
251253
else:

0 commit comments

Comments
 (0)