ajout de l'option --force

master
grisel-davy 6 years ago
parent a6abe24418
commit 8efe64530a

@ -11,6 +11,8 @@ import base64
import json
from subprocess import call
import os.path
import sys
config = ConfigParser()
config.read('config.ini')
@ -23,6 +25,9 @@ api_client = Re2oAPIClient(api_hostname, api_username, api_password)
client_hostname = socket.gethostname().split('.', 1)[0]
for arg in sys.argv:
if arg=="--force":
generate(api_client)
def generate(api_client):
all_users = api_client.list("localemail/users")

Loading…
Cancel
Save