ajout de l'option --force
This commit is contained in:
parent
a6abe24418
commit
8efe64530a
1 changed files with 5 additions and 0 deletions
5
main.py
5
main.py
|
@ -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…
Reference in a new issue