verbose everywhere
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2s

This commit is contained in:
pierre.geeraert
2026-09-09 14:25:05 +01:00
parent 9d82d61993
commit 860de928ba
2 changed files with 9 additions and 15 deletions
+4 -10
View File
@@ -49,7 +49,7 @@ def get_current_replicas():
print("THIS DEPLOY: name: "+str(server[1])+" namespace: "+str(server[0])+" replicas: "+str(server[2])+" IS NEW !!!!!")
return 0
def Check_server_supposed_XXX(expected_status):
def Check_server_supposed_XXX(expected_status,verbose=False):
#just for testing
#expected_status = True
@@ -71,25 +71,19 @@ def Check_server_supposed_XXX(expected_status):
deployments = Deployment_Data.objects.filter(schedule_week__in=schedules_week, schedule_day__in=schedules_day)
else:
deployments = Deployment_Data.objects.filter(schedule_week__in=schedules_week) | Deployment_Data.objects.filter(schedule_day__in=schedules_day)
#print("---------------------------------------------------------")
#print("-----------------Expected status: -----------------------")
#print("-----------------"+str(expected_status)+"-----------------------")
#print("---------------------------------------------------------")
deployments_list = []
for deployment in deployments:
display_list = []
name = deployment.name
display_list.append(name)
print("name: "+str(name))
if verbose : print("name: "+str(name))
namespace = deployment.namespace
display_list.append(namespace)
print("namespace: "+str(namespace))
if verbose : print("namespace: "+str(namespace))
replicas = deployment.replicas
display_list.append(replicas)
print("replicas: "+str(replicas))
if verbose : print("replicas: "+str(replicas))
#Adding the whole object as well for future use
display_list.append(deployment)
deployments_list.append(display_list)