Fail safed more parts of the code

This commit is contained in:
2025-07-12 21:35:33 +02:00
parent 066b4d59d6
commit ead60dab84
24 changed files with 493 additions and 102 deletions

View File

@@ -13,7 +13,7 @@ import argparse
import yaml
def get_role_folder(application_id, roles_path):
def get_role(application_id, roles_path):
"""
Find the role directory under `roles_path` whose vars/main.yml contains the specified application_id.
@@ -62,7 +62,7 @@ def main():
args = parser.parse_args()
try:
folder = get_role_folder(args.application_id, args.roles_path)
folder = get_role(args.application_id, args.roles_path)
print(folder)
sys.exit(0)
except RuntimeError as err: