You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by dk...@apache.org on 2013/04/24 00:05:50 UTC
git commit: FGCP: change 2nd param to start/stop_system from opts to
id
Updated Branches:
refs/heads/master 4b7c8e99a -> 1d9177495
FGCP: change 2nd param to start/stop_system from opts to id
Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/1d917749
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/1d917749
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/1d917749
Branch: refs/heads/master
Commit: 1d9177495dd52fb01143c052e3fac945452837aa
Parents: 4b7c8e9
Author: Dies Koper <di...@fast.au.fujitsu.com>
Authored: Wed Apr 24 07:53:30 2013 +1000
Committer: Dies Koper <di...@fast.au.fujitsu.com>
Committed: Wed Apr 24 07:57:07 2013 +1000
----------------------------------------------------------------------
.../drivers/fgcp/fgcp_driver_cimi_methods.rb | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/1d917749/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 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)