feat: output avaiable execute functions if known specified
ZeroDownTime/CloudBender/pipeline/head This commit looks good Details

This commit is contained in:
Stefan Reimer 2022-07-11 18:51:15 +00:00
parent d4cc665df4
commit f47cefbd36
1 changed files with 8 additions and 0 deletions

View File

@ -889,6 +889,14 @@ class Stack(object):
"""
if not function:
logger.error("No function specified !")
headerAdded = False
for k in vars(self._pulumi_code).keys():
if k.startswith("_execute_"):
if not headerAdded:
logger.info("Available execute functions:")
headerAdded = True
logger.info("{}".format(k.replace("_execute_", "- ")))
return
exec_function = f"_execute_{function}"