get_occurence_of_value not returning exact count if the value is list #10

Closed
opened 2018-11-02 09:57:10 -04:00 by russellballestrini · 0 comments
russellballestrini commented 2018-11-02 09:57:10 -04:00 (Migrated from git2.unturf.com)

Created by: rameshrvr

sample4 = {
            "values": [{
                "checks": [{
                    "monitoring_zones":
                    ["mzdfw", "mzfra", "mzhkg", "mziad",
                     "mzlon", "mzord", "mzsyd"]
                }]
            }]
        }

For the above document if i am searching for the occurrence of value 'mzhkg'. It should return 1 but it is returning 0 since it can't able to lookup inside a value if it is a list

*Created by: rameshrvr* ``` sample4 = { "values": [{ "checks": [{ "monitoring_zones": ["mzdfw", "mzfra", "mzhkg", "mziad", "mzlon", "mzord", "mzsyd"] }] }] } ``` For the above document if i am searching for the occurrence of value 'mzhkg'. It should return 1 but it is returning 0 since it can't able to lookup inside a value if it is a list
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: python/nested-lookup#10
No description provided.