-
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
Python requests
package interferes with keyvault
#1363
Comments
@lungj Could you describe your problem in more detail? From the above information, it is not clear what kind of problem you have encountered, thank you! |
Hi @Fred-sun ! The I know my answer above doesn't provide much detail, but hopefully it makes it clearer what the problem encountered is. I'm happy to provide any more specific details, but I'm not sure what to offer that's not already included in the original bug report. |
@lungj Are you saying that if there is a problem with the request.get() message, it will be thrown as an exception, and execution will be interrupted and the exception message will be printed? Thank you! |
I'm not sure I understand what you mean by "request.get() message". Do you mean my code example above where I call I think there's something going on at a lower level than at pure Python; there's a segfault or something similarly destructive that's preventing Python from raising an exception. I've used other modules that use As a side note, I've put using Azure Keyvault on the back burner for various reasons so resolving this isn't a priority for me. (But your responses are definitely appreciated!) |
SUMMARY
Using an inventory plug-in that uses the
requests
package causes Azure keyvault to fail.ISSUE TYPE
COMPONENT NAME
Lookup module
azure.azcollection.azure_keyvault_secret
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
macOS Sonoma 14.1.2 on Apple Silicon (M2)
Dev environment is a
nix
shell usingnix-shell -p python3
using a venv created bypoetry
.As per this, setting
STEPS TO REPRODUCE
Invoked using
EXPECTED RESULTS
Get the value associated with the key.
ACTUAL RESULTS
Things work if the
requests.get
call is commented out or if therequests
package is used in a dynamic inventory file (as opposed to a plug-in). As far as I can tell, no other packages that userequests
have had any issues. Otherwise, here are the actual results:The text was updated successfully, but these errors were encountered: