Adding logs in the process

This commit is contained in:
2023-12-01 17:18:53 +01:00
parent bbbf4ce497
commit 5b3b02980c

View File

@@ -110,9 +110,12 @@ if __name__ == '__main__':
an_image_was_updated = False
for c in containers:
this_image_was_updated = client.update_image(endpoint, c['Image'])
an_image_was_updated = an_image_was_updated or this_image_was_updated
if this_image_was_updated:
print(f"{c['Image']} was updated")
an_image_was_updated = True
if an_image_was_updated:
print(f"Restarting {stack_name}")
if endpoint == 2 and stack_name in ('portainer', 'traefik'):
update_local_stack(stack)
else: