lib/runcible/resources/repository.rb in runcible-2.11.0 vs lib/runcible/resources/repository.rb in runcible-2.11.1
- old
+ new
@@ -171,12 +171,12 @@
#
# @param [String] id the id of the repository
# @param [String] distributor_id the id of the distributor
# @param [Hash] distributor_config attributes to change
# @return [RestClient::Response]
- def update_distributor(id, distributor_id, distributor_config)
+ def update_distributor(id, distributor_id, distributor_config, optional = {})
required = required_params(binding.send(:local_variables), binding, ['id', 'distributor_id'])
- call(:put, path("#{id}/distributors/#{distributor_id}/"), :payload => { :required => required})
+ call(:put, path("#{id}/distributors/#{distributor_id}/"), :payload => { :required => required, :optional => optional})
end
# Deletes the specified importer from the repository
#
# @param [String] id the id of the repository