deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject git commit: DTACLOUD-250: fix typo in comparison operator to set create_image to true when instance is STOPPED
Date Thu, 05 Jul 2012 08:31:54 GMT
Updated Branches:
  refs/heads/master cf8af08f7 -> 377b490a1


DTACLOUD-250: fix typo in comparison operator to set create_image to true when instance is
STOPPED


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

Branch: refs/heads/master
Commit: 377b490a1a3a4237f6bfb9e8fb970c86bdc9f655
Parents: cf8af08
Author: Dies Koper <diesk@fast.au.fujitsu.com>
Authored: Thu Jul 5 14:45:52 2012 +1000
Committer: marios <marios@redhat.com>
Committed: Thu Jul 5 11:26:42 2012 +0300

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


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/377b490a/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb b/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb
index c32819c..485126e 100644
--- a/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb
+++ b/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb
@@ -1235,7 +1235,7 @@ eofwopxml
     else
       # vserver
       state = @@INSTANCE_STATE_MAP[client.get_vserver_status(vserver['vserverId'][0])['vserverStatus'][0]]
-      create_image = (state == /STOPPED|UNEXPECTED_STOP/)
+      create_image = (state =~ /STOPPED|UNEXPECTED_STOP/)
     end
 
     {


Mime
View raw message