You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by ma...@apache.org on 2013/02/07 16:51:35 UTC

[1/2] git commit: Openstack: Adds 'launch_time' attribute mapping to instance collection

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 <ch...@2kit.de>
Authored: Thu Jan 31 19:56:13 2013 +0100
Committer: marios <ma...@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)