deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dko...@apache.org
Subject git commit: FGCP: copied image size into InstanceProfile's :storage. Allows cimi /disks to work
Date Fri, 15 Feb 2013 12:25:40 GMT
Updated Branches:
  refs/heads/master eba38a669 -> b633481b6


FGCP: copied image size into InstanceProfile's :storage. Allows cimi /disks to work


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

Branch: refs/heads/master
Commit: b633481b6258131396b21be6f41e4b5daa50e22e
Parents: eba38a6
Author: Dies Koper <diesk@fast.au.fujitsu.com>
Authored: Fri Feb 15 22:36:44 2013 +1100
Committer: Dies Koper <diesk@fast.au.fujitsu.com>
Committed: Fri Feb 15 23:25:14 2013 +1100

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


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/b633481b/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 5cf957a..af61fe9 100644
--- a/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb
+++ b/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb
@@ -1558,6 +1558,8 @@ eofwopxml
         images['diskimages'][0]['diskimage'].each do |img|
           if vserver['diskimageId'][0] == img['diskimageId'][0]
             instance.username = img['osName'][0] =~ /Windows.*/ ? 'Administrator' : 'root'
+            instance.instance_profile.storage = img['size'][0].to_s
+            break
           end
         end
         instance.password = client.get_vserver_initial_password(vserver['vserverId'][0])['initialPassword'][0]


Mime
View raw message