Should raise NetworkReservationNotEnoughCapacity exception; but get "undefined local variable or method `name' for #<Bosh::Director::ResourcePoolUpdater>" instead

During the `Bosh::Director::ResourcePoolUpdater#reserve_networks` method, if there is a `NetworkReservation::CAPACITY` error, then a `NetworkReservationNotEnoughCapacity` exception should be raised but its failing because it tries to put name/index in the error message; but these methods/variables (no longer?) exist in the scope.

https://github.com/cloudfoundry/bosh/blob/master/bosh-director/lib/bosh/director/resource_pool_updater.rb#L146-L153 in this code block, afaict there is no definition of `name` or `index` variables/methods, which is the cause of this error.

Did this ever work?