Skip to content
Discussion options

You must be logged in to vote

Hi @sunil9420

Logs are not getting past the transform because after you call unnest (and even before), .properties.status is not valid. Only children of records have .properties.provisioningStatusInfo.Status. You can play around with your input using the playground.

I suspect you actually want to do something like this:

if is_array(.records) {
    records = []
    for_each(array!(.records)) -> |_index, value| {
        value.status = value.properties.provisioningStatusInfo.Status
        records = append(records, [value])
    }

    .records = records
    . = unnest!(.records)
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pront
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants