When running vmdkManagement.pl with the operation "remove", the function fails to check the datastore of the disk being removed matches the datastore passed at the command line.
This can result in the wrong disk being removed, in my case it was the system disk for a non-production server.
I've attached two patches, one which will take the datastore argument and ensure it matches the disk in find_disk exactly. The other will ensure it matches the regex passed from the datastore argument, which is what I require for my environment. The second patch will only be of use if another patch I submitted earlier to William Lam is also committed.