Skip to content

azure_service_enum.py - IndexError: list index out of range #3

@win3zz

Description

@win3zz

ISSUE SUMMARY

azure_service_enum.py script throws an error on line number 73 when only one API version is available.
Please find below screenshot for your reference:
Screenshot from 2020-05-12 16-06-10

RECOMMENDATION

Check the length of 'apiversionlist' array before use.
To resolve the problem, add the following code before #L61:

if len(apiversionlist) > 1 :

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions