mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Merge pull request #1219 from drbrain/openstack_server_add_created_updated
Added OpenStack::Server#created and #updated
This commit is contained in:
commit
8f8c410696
3 changed files with 8 additions and 2 deletions
|
@ -24,6 +24,8 @@ module Fog
|
|||
attribute :availability_zone
|
||||
attribute :user_data_encoded
|
||||
attribute :state, :aliases => 'status'
|
||||
attribute :created, :type => :time
|
||||
attribute :updated, :type => :time
|
||||
|
||||
attribute :tenant_id
|
||||
attribute :user_id
|
||||
|
|
|
@ -67,7 +67,9 @@ module Fog
|
|||
'accessIPv4' => options['accessIPv4'] || "",
|
||||
'accessIPv6' => options['accessIPv6'] || "",
|
||||
'progress' => 0,
|
||||
'status' => 'BUILD'
|
||||
'status' => 'BUILD',
|
||||
'created' => '2012-09-27T00:04:18Z',
|
||||
'updated' => '2012-09-27T00:04:27Z',
|
||||
}
|
||||
|
||||
self.data[:last_modified][:servers][data['id']] = Time.now
|
||||
|
|
|
@ -12,7 +12,9 @@ Shindo.tests('Fog::Compute[:openstack] | server requests', ['openstack']) do
|
|||
'status' => String,
|
||||
'accessIPv4' => Fog::Nullable::String,
|
||||
'accessIPv6' => Fog::Nullable::String,
|
||||
'links' => Array
|
||||
'links' => Array,
|
||||
'created' => String,
|
||||
'updated' => String
|
||||
}
|
||||
|
||||
@image_format = {
|
||||
|
|
Loading…
Add table
Reference in a new issue