Compare commits

..

2 Commits

Author SHA1 Message Date
441fbd22d2 correction timeout 2021-07-20 09:14:19 +02:00
0f3c332923 correction 2021-07-20 09:11:48 +02:00
2 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@ def display_help():
def argparser():
# récupère l'ID du groupe
arglen = len(sys.argv)
save = False
save = None
if "--save" in sys.argv:
save = True
if "--no-save" in sys.argv:
@ -72,7 +72,7 @@ def main():
if to_save == "O":
save = True
print("Sauvegarde de la configuration sur zephir")
else:
elif to_save == "N":
print("La configuration ne sera pas sauvegardé sur le zephir")
if save:

View File

@ -148,9 +148,9 @@ def make_group():
filename += '-' + variantes[idx]
variantes = [variante_infos[variantes[idx]]]
print
print("Liste des serveurs : ")
for variante in variantes:
cu.execute('select id,ip_publique,rne,libelle from serveurs where variante=' + str(variante))
print("Liste des serveurs : ")
for server in cu.fetchall():
print('{} - {} - {} - {}'.format(server[0], server[1], server[2], server[3]))
server_infos.append(server[0])