Adding logs in the process
This commit is contained in:
5
main.py
5
main.py
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user