diff --git a/scripts/run_updates.py b/scripts/run_updates.py index 9ec2eb0..a12012b 100644 --- a/scripts/run_updates.py +++ b/scripts/run_updates.py @@ -26,8 +26,9 @@ def main(): with open("main.yml", 'r') as file: data = yaml.safe_load(file) for host in data: - for task in host['tasks']: - deployable_tags.append(task['tags']) + if "tasks" in host: + for task in host['tasks']: + deployable_tags.append(task['tags']) if len(update_list["images"]) > 0: already_deployed = []