deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject [1/2] git commit: Openstack: Adds 'launch_time' attribute mapping to instance collection
Date Thu, 07 Feb 2013 15:51:35 GMT
Openstack: Adds 'launch_time' attribute mapping to instance collection


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

Branch: refs/heads/master
Commit: 0b487f3658c20a60bbe83e8d25886fd12f4efaab
Parents: cdcf0eb
Author: Christian Karnath <christian.karnath@2kit.de>
Authored: Thu Jan 31 19:56:13 2013 +0100
Committer: marios <marios@redhat.com>
Committed: Thu Feb 7 17:51:00 2013 +0200

----------------------------------------------------------------------
 .../drivers/openstack/openstack_driver.rb          |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/0b487f36/server/lib/deltacloud/drivers/openstack/openstack_driver.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/openstack/openstack_driver.rb b/server/lib/deltacloud/drivers/openstack/openstack_driver.rb
index 00b95aa..d499f8d 100644
--- a/server/lib/deltacloud/drivers/openstack/openstack_driver.rb
+++ b/server/lib/deltacloud/drivers/openstack/openstack_driver.rb
@@ -537,6 +537,7 @@ private
             :username => 'root',
             :password => password,
             :keyname => server.send(op, :key_name),
+            :launch_time => server.send(op, :created),
             :storage_volumes => attachments.inject([]){|res, cur| res << {cur[:volumeId]
=> cur[:device]} ;res}
           )
           inst.actions = instance_actions_for(inst.state)


Mime
View raw message