package version parameter does not work for extended version numbers
Describe the bug
`% python3 pcs_images_packages_read.py --package_id curl:8 --version_comparison lt
Testing Compute API Access ... done.
Searching for Package: (curl) Version: (8) Exact Match Name: (False) Version Comparison Operator: (lt)
Getting CI Images ...
Traceback (most recent call last):
File "/Users/username/git/prismacloud-api-python/scripts/pcs_images_packages_read.py", line 255, in
It seems like using the :version capability breaks if you have any versions of the package with extended version numbers. I'm not certain of the breakpoint, but it seems like either the dash (-), or the underscore (_) might be the cause.
Expected behavior
Correctly parses the version number and returns results
Current behavior
Script crashes with above InvalidVersion error.
Possible solution
Improve parsing of versions.
Steps to reproduce
Provided above, assuming you have extended versions of the app in question.
Your Environment
- git commit used (latest): 30ac4b6bb24811704a4b607d2ee360256f32cdf7
- Python Version used: Python 3.9.6
- Operating System and version (desktop or mobile): MacOS 13.6 (22G120)
:tada: Thanks for opening your first issue here! Welcome to the community!