pkg_resource.sort_pkglist raises TypeError: list indices must be integers, not str #22152
Labels
Bug
broken, incorrect, or confusing behavior
Execution-Module
P2
Priority 2
Platform
Relates to OS, containers, platform-based utilities like FS, system based apps
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
stale
Milestone
When attempting to run an example from the documentation:
salt '*' pkg_resource.sort_pkglist '["3.45", "2.13"]'
a TypeError: "list indices must be integers, not str" is raised. The offending line as reported by Python is line 216 of pkg_resource.py.
Tested in salt-minion 2014.7.1, 2014.7.2 (Helium) and 2015.2 HEAD.
The text was updated successfully, but these errors were encountered: