From 258cebda6e4ddf20a961250a5cf8024b8c6e8246 Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Thu, 12 Aug 2021 15:01:45 -0400 Subject: [PATCH] Correct identity update payload to not have unsupported fields --- salt/common/tools/sbin/so-user | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/common/tools/sbin/so-user b/salt/common/tools/sbin/so-user index f0c064d03..742c3ca5d 100755 --- a/salt/common/tools/sbin/so-user +++ b/salt/common/tools/sbin/so-user @@ -306,7 +306,7 @@ function updateStatus() { [[ $? != 0 ]] && fail "Unable to unlock credential record" fi - updatedJson=$(echo "$response" | jq ".traits.status = \"$status\" | del(.verifiable_addresses) | del(.id) | del(.schema_url)") + updatedJson=$(echo "$response" | jq ".traits.status = \"$status\" | del(.verifiable_addresses) | del(.id) | del(.schema_url) | del(.created_at) | del(.updated_at)") response=$(curl -Ss -XPUT -L ${kratosUrl}/identities/$identityId -d "$updatedJson") [[ $? != 0 ]] && fail "Unable to mark user as locked"