I think there is a missing `end` here for the module. There appear to be a corresponding failing test here: https://travis-ci.org/fog/fog/jobs/25190317#L440