deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dko...@apache.org
Subject [2/2] git commit: CIMI: make destroy_system(credentials, id) method's signature consistent with destroy_instance's so that operation works on mock
Date Mon, 08 Apr 2013 12:05:25 GMT
CIMI: make destroy_system(credentials, id) method's signature consistent with
destroy_instance's so that operation works on mock


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/6e8de4bc
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/6e8de4bc
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/6e8de4bc

Branch: refs/heads/master
Commit: 6e8de4bc6a8326c43c6fc7e4775f5a08a9f82f31
Parents: 5822d2a
Author: Dies Koper <diesk@fast.au.fujitsu.com>
Authored: Sat Apr 6 03:40:34 2013 +1100
Committer: Dies Koper <diesk@fast.au.fujitsu.com>
Committed: Mon Apr 8 22:05:07 2013 +1000

----------------------------------------------------------------------
 server/lib/cimi/service/system.rb                  |    2 +-
 .../drivers/fgcp/fgcp_driver_cimi_methods.rb       |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/6e8de4bc/server/lib/cimi/service/system.rb
----------------------------------------------------------------------
diff --git a/server/lib/cimi/service/system.rb b/server/lib/cimi/service/system.rb
index bb28e82..daad428 100644
--- a/server/lib/cimi/service/system.rb
+++ b/server/lib/cimi/service/system.rb
@@ -38,7 +38,7 @@ class CIMI::Service::System < CIMI::Service::Base
   end
 
   def self.delete!(id, context)
-    context.driver.destroy_system(context.credentials, {:id=>id})
+    context.driver.destroy_system(context.credentials, id)
   end
 
 

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/6e8de4bc/server/lib/deltacloud/drivers/fgcp/fgcp_driver_cimi_methods.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/fgcp/fgcp_driver_cimi_methods.rb b/server/lib/deltacloud/drivers/fgcp/fgcp_driver_cimi_methods.rb
index 9735c62..a8d907e 100644
--- a/server/lib/deltacloud/drivers/fgcp/fgcp_driver_cimi_methods.rb
+++ b/server/lib/deltacloud/drivers/fgcp/fgcp_driver_cimi_methods.rb
@@ -92,8 +92,8 @@ module Deltacloud::Drivers::Fgcp
       end
     end
 
-    def destroy_system(credentials, opts={})
-      delete_firewall(credentials, {:id=>"#{opts[:id]}-S-0001"})
+    def destroy_system(credentials, id)
+      delete_firewall(credentials, :id => "#{id}-S-0001")
     end
 
     def start_system(credentials, opts={})


Mime
View raw message