Skip to content

Commit bdb6497

Browse files
committed
if we had to resolve kc id attributes might not be present
1 parent 94be07b commit bdb6497

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/rasenmaeher_api/kchelpers.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,10 @@ async def update_kc_user(self, user: KCUserData) -> Optional[KCUserData]:
199199
"enabled": True,
200200
}
201201
)
202+
if "attributes" not in send_payload:
203+
send_payload["attributes"] = {
204+
"callsign": pdata.callsign,
205+
}
202206
send_payload["attributes"].update(
203207
{
204208
"certpem": pdata.x509cert,

0 commit comments

Comments
 (0)