Bug in check_vsphere_xi.py
Posted: Thu Jan 09, 2025 5:13 pm
Not sure if this is the correct forum to address this, so apologies in advance if not.
In working to utilize the "new" python check for VMware resources I ran into a bit of an edge case with how the check_vsphere_xi.py script handles the password value when consumed from an auth file.
Currently the password value is extracted with: which won't properly capture the entire password if that password contains a "=" symbol. Patching this to instead be: should fix the issue.
Just wanted to pass this along, in the very least to help anyone with this very specific issue.
In working to utilize the "new" python check for VMware resources I ran into a bit of an edge case with how the check_vsphere_xi.py script handles the password value when consumed from an auth file.
Currently the password value is extracted with:
Code: Select all
password = line.split("=")[1].rstrip()Code: Select all
password = line.split("=", 1)[1].rstrip()Just wanted to pass this along, in the very least to help anyone with this very specific issue.