mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Drop obsolete status trait
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user