Solved suffix bug

This commit is contained in:
Kevin Veen-Birkenbach 2024-01-10 13:18:40 +01:00
parent 0eaf152640
commit a3353f34ff
2 changed files with 3 additions and 2 deletions

View File

@ -76,9 +76,10 @@ def main(services, ignored_services, timeout_sec):
Main function to process the command-line arguments and perform actions.
"""
services_with_suffix = append_suffix_to_services(services)
filtered_services = filter_services(services_with_suffix, ignored_services)
ignored_services_with_suffix = append_suffix_to_services(ignored_services)
filtered_services = filter_services(services_with_suffix, ignored_services_with_suffix )
print(f"Services to handle: {services_with_suffix}")
print(f"Services to ignore: {ignored_services}")
print(f"Services to ignore: {ignored_services_with_suffix}")
print(f"Services filtered: {filtered_services}")
print("Waiting for services to stop.")