-
Notifications
You must be signed in to change notification settings - Fork 329
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
vmware_deploy_ovf.py - AttributeError: 'NoneType' object has no attribute 'group' #1973
Comments
Maybe the regex could look something like this? I'm not very good with regex so sorry if this is incorrect/ignorant.
I have tested out the change here [https://regex101.com/r/gE4aXA/2] and I've also coded up a python example which seems to match successfully
|
@MichaelHelmers this module version is unsupported. Please reproduce issue on supported version of community.vmware (4.x and 3.x). |
@ihumster
The issue is still present. |
@MichaelHelmers Your regex doesn't work well with url without basic auth. =( I’ll think about it, plus I need to make it work with Basic Auth, now there is no authorization in the code at all. |
SUMMARY
AttributeError: 'NoneType' object has no attribute 'group'
I believe this is happening because the regex match in _parse_url of the class WebHandle does not allow for basic authentication credentials to be supplied in the url of the ofv template.
ISSUE TYPE
COMPONENT NAME
vmware_deploy_ovf.py
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
STEPS TO REPRODUCE
Set ofv_url to include basic auth credentials
ovf_url="https://admin:admin@myurl.com/path/to/ovf/template.ovf"
EXPECTED RESULTS
The regex should return a match.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: