With this patch, the Ruby bindings are no longer backwards compatible with pre-1.6 Cobbler installations.
Signed-off-by: Darryl L. Pierce dpierce@redhat.com --- contrib/ruby/lib/cobbler/base.rb | 11 ----------- 1 files changed, 0 insertions(+), 11 deletions(-)
diff --git a/contrib/ruby/lib/cobbler/base.rb b/contrib/ruby/lib/cobbler/base.rb index df84ac1..47dce63 100644 --- a/contrib/ruby/lib/cobbler/base.rb +++ b/contrib/ruby/lib/cobbler/base.rb @@ -120,17 +120,6 @@ module Cobbler puts "Connection: writable=#{writable}" if @@debug @@connection ||= XMLRPC::Client.new2("http://#%7B@@hostname%7D/cobbler_api")
- # in pre-1.5 versions, a separate path was used for writable calls - # TODO: remove this code in 1.6 (dlp) - version = remote_version - puts "Remote version: #{version}" if @@debug - if writable && - version < 1.5 && - !(@@connection.instance_variable_get('@path') =~ /rw$/) - puts "Older version detected: connecting to R/W endpoint" if @@debug - @@connection = XMLRPC::Client.new2("http://#%7B@@hostname%7D/cobbler_api_rw") - end - return @@connection end
cobbler-devel@lists.fedorahosted.org