Make Linear SCIM object sync best-effort
This commit is contained in:
parent
7421834ebc
commit
7d3e7a6ec5
1 changed files with 4 additions and 2 deletions
|
|
@ -174,7 +174,7 @@ sync_object() {
|
||||||
local model="$2"
|
local model="$2"
|
||||||
local object_id="$3"
|
local object_id="$3"
|
||||||
|
|
||||||
api POST "/api/v3/providers/scim/${provider_pk}/sync/object/" "$(
|
if ! api POST "/api/v3/providers/scim/${provider_pk}/sync/object/" "$(
|
||||||
jq -cn \
|
jq -cn \
|
||||||
--arg model "$model" \
|
--arg model "$model" \
|
||||||
--arg object_id "$object_id" \
|
--arg object_id "$object_id" \
|
||||||
|
|
@ -183,7 +183,9 @@ sync_object() {
|
||||||
sync_object_id: $object_id,
|
sync_object_id: $object_id,
|
||||||
override_dry_run: false
|
override_dry_run: false
|
||||||
}'
|
}'
|
||||||
)" >/dev/null
|
)" >/dev/null; then
|
||||||
|
echo "warning: could not trigger immediate Linear SCIM sync for ${model} ${object_id}; provider will continue with its normal sync cycle." >&2
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
wait_for_authentik
|
wait_for_authentik
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue