deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nakagawa.yo...@jp.fujitsu.com
Subject [PATCH] FGCP: Always get instances state because StatefulObject(Ruby client) needs
Date Tue, 28 Aug 2012 02:54:59 GMT
From: Yoshiaki Nakagawa <nakagawa.yoshi@jp.fujitsu.com>

---
 server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb b/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb
index 53a0ac2..24b9d28 100644
--- a/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb
+++ b/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb
@@ -263,8 +263,8 @@ class FgcpDriver < Deltacloud::BaseDriver
           vsys_config['vsys'][0]['vservers'][0]['vserver'].each do |vserver|
 
             # to keep the response time of this method acceptable, retrieve state
-            # only if required because state is filtered on
-            state_data = opts[:state] ? instance_state_data(vserver, client) : nil
+            # state is required because StatefulObject (in ruby client) needs
+            state_data = instance_state_data(vserver, client)
             # filter on state
             if opts[:state].nil? or opts[:state] == state_data[:state]
               instances << convert_to_instance(client, vserver, state_data)
-- 
1.7.1



Mime
View raw message