Fix provider_spec by not sending a string for a resource