diff --git a/lib/fog/openstack/models/compute/server.rb b/lib/fog/openstack/models/compute/server.rb index 9f7e88cac..4cde80eb6 100644 --- a/lib/fog/openstack/models/compute/server.rb +++ b/lib/fog/openstack/models/compute/server.rb @@ -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 diff --git a/lib/fog/openstack/requests/compute/create_server.rb b/lib/fog/openstack/requests/compute/create_server.rb index 20ff57677..644bc3ca8 100644 --- a/lib/fog/openstack/requests/compute/create_server.rb +++ b/lib/fog/openstack/requests/compute/create_server.rb @@ -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 diff --git a/tests/openstack/requests/compute/server_tests.rb b/tests/openstack/requests/compute/server_tests.rb index 9f28b4961..a173e6aee 100644 --- a/tests/openstack/requests/compute/server_tests.rb +++ b/tests/openstack/requests/compute/server_tests.rb @@ -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 = {