From a717bbc1d5294c01c93cb3d63a374807e5dab0ad Mon Sep 17 00:00:00 2001 From: Alexey Nayden Date: Thu, 14 Apr 2011 15:24:41 +0400 Subject: [PATCH] xmlrpc fixes --- app/models/platform.rb | 8 ++++---- app/models/repository.rb | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/models/platform.rb b/app/models/platform.rb index a49ce7868..a8290482f 100644 --- a/app/models/platform.rb +++ b/app/models/platform.rb @@ -50,7 +50,7 @@ class Platform < ActiveRecord::Base end def xml_rpc_create - result = BuildServer.add_platform name, APP_CONFIG['root_path'] + result = BuildServer.add_platform unixname, APP_CONFIG['root_path'] if result == BuildServer::SUCCESS return true else @@ -59,17 +59,17 @@ class Platform < ActiveRecord::Base end def xml_rpc_destroy - result = BuildServer.delete_platform name + result = BuildServer.delete_platform unixname if result == BuildServer::SUCCESS return true else - raise "Failed to delete platform #{name}." + raise "Failed to delete platform #{unixname}." end end def check_freezing if released_changed? - BuildServer.freeze_platform self.name + BuildServer.freeze_platform self.unixname end end end diff --git a/app/models/repository.rb b/app/models/repository.rb index 7a6431c84..63787ea0a 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -40,7 +40,7 @@ class Repository < ActiveRecord::Base end def xml_rpc_create - result = BuildServer.create_repo name, platform.name + result = BuildServer.create_repo unixname, platform.unixname if result == BuildServer::SUCCESS return true else @@ -49,7 +49,7 @@ class Repository < ActiveRecord::Base end def xml_rpc_destroy - result = BuildServer.delete_repo name, platform.name + result = BuildServer.delete_repo unixname, platform.unixname if result == BuildServer::SUCCESS return true else