… connection issues. Making the flavor exception when no template matching filter found to be more verbose and help debug filters that aren't found.
I browsed through the fog library and didn't find anything that could validate credentials before using the connection (and there might be a better way to do that!)
Also worth nothing that it takes a ridiculously long time to pull up the flavors via 'conn.flavors', which is why I don't bother with an explicit check on the connection flavors, since if it IS populated, would add unnecessary overhead.
Overall, just a change to help users debug the "Could not find template to create VM" exception, even though it's technically accurate, it's caused by the fact that a user's credentials may be wrong (but has no indication of it!)
… connection issues. Making the flavor exception when no template matching filter found to be more verbose and help debug filters that aren't found.
I browsed through the fog library and didn't find anything that could validate credentials before using the connection (and there might be a better way to do that!) Also worth nothing that it takes a ridiculously long time to pull up the flavors via 'conn.flavors', which is why I don't bother with an explicit check on the connection flavors, since if it IS populated, would add unnecessary overhead.
Overall, just a change to help users debug the "Could not find template to create VM" exception, even though it's technically accurate, it's caused by the fact that a user's credentials may be wrong (but has no indication of it!)