We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9095481 commit ba48fb5Copy full SHA for ba48fb5
1 file changed
src/lib/ad_utils.py
@@ -242,10 +242,12 @@ def lifecycle(entity):
242
before = entity['payload']['before']['lifecycle']
243
after = entity['payload']['after']['lifecycle']
244
template_name=before + "_" + after + ".template"
245
- test=os.getcwd()
+ template_name1 = "_" + after + ".template"
246
r=0
247
if os.path.exists(__CUSTOM_TEMPLATES_PS1__ + "/" + template_name):
248
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)
251
elif os.path.exists(__CUSTOM_TEMPLATES_PS1__ + "/" +"lifecycle.template"):
252
r=ad_exec_script(entity, "lifecycle.template")
253
else:
0 commit comments