Drop obsolete status trait

This commit is contained in:
Jason Ertel
2021-10-06 12:52:41 -04:00
parent a2c4fce1ef
commit 7d8c8144b0

View File

@@ -396,7 +396,9 @@ function updateStatus() {
[[ $? != 0 ]] && fail "Unable to communicate with Kratos" [[ $? != 0 ]] && fail "Unable to communicate with Kratos"
schemaId=$(echo "$response" | jq -r .schema_id) schemaId=$(echo "$response" | jq -r .schema_id)
traitBlock=$(echo "$response" | jq -r .traits)
# Capture traits and remove obsolete 'status' trait if exists
traitBlock=$(echo "$response" | jq -r .traits | grep -v "\"status\":")
state="active" state="active"
if [[ "$status" == "locked" ]]; then if [[ "$status" == "locked" ]]; then