swap to email by default

This commit is contained in:
2024-07-05 12:07:17 +02:00
parent 8708e06155
commit b08a4f931d

View File

@@ -121,14 +121,15 @@ def audit():
if not list_app_to_update:
message="your repository seems up to date"
print(message)
send_to_rocket(message)
#send_to_rocket(message)
return "OK"
else:
message=f"You need to update some packages :\n"
for app in list_app_to_update:
message += f"**{app['package']}** : {app['new_version']} from : {app['old_version']}\n"
print(message)
send_to_rocket(message)
#send_to_rocket(message)
send_email("Some application need to be updated on your wapt server",message)
return "WARNING"