deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <di...@fast.au.fujitsu.com>
Subject [PATCH] FGCP: change 2nd param to start/stop_system from opts to id
Date Tue, 23 Apr 2013 21:53:51 GMT
From: Dies Koper <diesk@fast.au.fujitsu.com>

---
 .../lib/deltacloud/drivers/fgcp/fgcp_driver_cimi_methods.rb  | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

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 0d21acb..e57bb2d 100644
--- a/server/lib/deltacloud/drivers/fgcp/fgcp_driver_cimi_methods.rb
+++ b/server/lib/deltacloud/drivers/fgcp/fgcp_driver_cimi_methods.rb
@@ -99,12 +99,10 @@ module Deltacloud::Drivers::Fgcp
       delete_firewall(credentials, :id => "#{id}-S-0001")
     end
 
-    def start_system(credentials, opts={})
+    def start_system(credentials, id)
       safely do
         client = new_client(credentials)
-        context = opts[:env]
-        vsys_id = opts[:id]
-        xml = client.list_vservers(vsys_id)['vservers']
+        xml = client.list_vservers(id)['vservers']
         return unless xml and xml[0]['vserver']
 
         # FIXME: maybe this should be done in a separate thread (in case of gigantic number
of servers)
@@ -119,12 +117,10 @@ module Deltacloud::Drivers::Fgcp
       end
     end
 
-    def stop_system(credentials, opts={})
+    def stop_system(credentials, id)
       safely do
         client = new_client(credentials)
-        context = opts[:env]
-        vsys_id = opts[:id]
-        xml = client.list_vservers(vsys_id)['vservers']
+        xml = client.list_vservers(id)['vservers']
         return unless xml and xml[0]['vserver']
 
         # FIXME: maybe this should be done in a separate thread (in case of gigantic number
of servers)
-- 
1.8.0.msysgit.0



Mime
View raw message