-
Notifications
You must be signed in to change notification settings - Fork 332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
azure_rm_galleryimageversion_info throwing error when image definition does not exist or when image definition does not have image versions #1663
Comments
What is the purpose of this line? if we skip it the response will be an empty array in case no image versions found
|
@zinzh This purpose is to take the information on the next page and merge it into the information currently obtained. Thank you! |
@Fred-sun i am facing this issue in v2.6.0 |
@zinzh I will retry it! Thanks! |
@zinzh It will be released soon, we have a few more patches, update, will be released. Thank you! |
Fixes by #1637, |
SUMMARY
azure_rm_galleryimageversion_info.py throwing error when image definition does not exist.
ISSUE TYPE
COMPONENT NAME
azure_rm_galleryimageversion_info.py
ANSIBLE VERSION
COLLECTION VERSION
STEPS TO REPRODUCE
Use an image definition that does not exist, or an image definition that does not have any image version under it
EXPECTED RESULTS
Expext to get an empty array or an indication that no versions exist
ACTUAL RESULTS
Got an exception
SOME TROUBLESHOOTING I HAVE DONE
In azure_rm_galleryimageversion_info.py, format_item function, check is being done if item is None:
However if we debug
item
variable when no versions exist, it is not an empty array as we would expect:Which is leading the condition to be skipped
The text was updated successfully, but these errors were encountered: