Renamed local variable to 'provider'.
Promoted the provider local variable to a function parameter. If the caller doesn't provide it, pyrax/novaclient will be used with the given credential info.