Skip to content

Ignoring index_stats flag #25

@EricMooreHays

Description

@EricMooreHays

I find that the app ignores the directive index_stats=0

the app sets the flag to 0 or 1, and at line 120 in azure_kql.py if tests this as

if (index_stats):
    headers = {
       "Prefer": "include-statistics=true"
     }

this fires regardless of the status of the directive.

the following is crude but works:

                if index_stats=="1" or index_stats.upper()=="TRUE": 
                    headers = {
                        "Prefer": "include-statistics=true"
                    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions