Compare commits
No commits in common. "441fbd22d2338981c1314e68b1ef449448b4aefa" and "4b11e407bef74bebe3af1cea8e3254dede1aedb1" have entirely different histories.
441fbd22d2
...
4b11e407be
@ -16,7 +16,7 @@ def display_help():
|
||||
def argparser():
|
||||
# récupère l'ID du groupe
|
||||
arglen = len(sys.argv)
|
||||
save = None
|
||||
save = False
|
||||
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")
|
||||
elif to_save == "N":
|
||||
else:
|
||||
print("La configuration ne sera pas sauvegardé sur le zephir")
|
||||
|
||||
if save:
|
||||
|
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user