Adding logs in the process
This commit is contained in:
1 parent
bbbf4ce497
commit
5b3b02980c
1 file changed
+4
-1
@@ -110,9 +110,12 @@ if __name__ == '__main__':
|
|||||||
an_image_was_updated = False
|
an_image_was_updated = False
|
||||||
for c in containers:
|
for c in containers:
|
||||||
this_image_was_updated = client.update_image(endpoint, c['Image'])
|
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:
|
if an_image_was_updated:
|
||||||
|
print(f"Restarting {stack_name}")
|
||||||
if endpoint == 2 and stack_name in ('portainer', 'traefik'):
|
if endpoint == 2 and stack_name in ('portainer', 'traefik'):
|
||||||
update_local_stack(stack)
|
update_local_stack(stack)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in new issue
Block a user