From 3be167144a3c273beec644fa5d6855bd4064b8ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 2 Sep 2020 11:37:23 +0200 Subject: [PATCH] Add support for injecting additional data when creating user --- rt2zammad.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rt2zammad.py b/rt2zammad.py index 82dbf82..1d3858b 100755 --- a/rt2zammad.py +++ b/rt2zammad.py @@ -35,7 +35,8 @@ TEMPLATE = """{ "rt_pass": "", "rt_start": 1, "rt_end": 1000, -"usermap": {} +"usermap": {}, +"userdata": {} } """ @@ -165,6 +166,7 @@ def get_user(userdata, attr="login"): # Create new one if lemail not in USERMAP: kwargs = {"email": email} + kwargs.update(config["userdata"]) if "RealName" in userdata: realname = userdata["RealName"] if ", " in realname: